aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mprotect.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-11-13 10:47:20 +1100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 14:15:41 -0800
commitcfa8d17cc836905ad174fd924701b352585d62f1 (patch)
tree6c966440661a678aea2082cf72c1bee0886a0a57 /mm/mprotect.c
parent[CRYPTO] Allow AES C/ASM implementations to coexist (diff)
downloadlinux-dev-cfa8d17cc836905ad174fd924701b352585d62f1.tar.xz
linux-dev-cfa8d17cc836905ad174fd924701b352585d62f1.zip
[CRYPTO] sha1: Avoid useless memcpy()
The current code unconditionally copy the first block for every call to sha1_update(). This can be avoided if there is no pending partial block. This is always the case on the first call to sha1_update() (if the length is >= 64 of course. Furthermore, temp does need to be called if sha_transform is never invoked. Also consolidate the sha_transform calls into one to reduce code size. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions