From: Nicolas Pitre Date: Sun, 13 Nov 2005 00:17:33 +0000 (+1100) Subject: [CRYPTO] sha1: Avoid shifting count left and right X-Git-Tag: v2.6.16-rc1~658^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9b98fdab5b57ecb4dd3d6c2489e262af458c44;p=pandora-kernel.git [CRYPTO] sha1: Avoid shifting count left and right This patch avoids shifting the count left and right needlessly for each call to sha1_update(). It instead can be done only once at the end in sha1_final(). Keeping the previous test example (sha1_update() successively called with len=64), a 1.3% performance increase can be observed on i386, or 0.2% on ARM. The generated code is also smaller on ARM. Signed-off-by: Nicolas Pitre Signed-off-by: Herbert Xu --- Reading git-diff-tree failed