From: Alexey Dobriyan Date: Sat, 14 Jan 2012 18:44:49 +0000 (+0300) Subject: crypto: sha512 - use standard ror64() X-Git-Tag: v3.2.7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c51cb723a36b2b8491354029df48a984e8e8f8a;p=pandora-kernel.git crypto: sha512 - use standard ror64() commit f2ea0f5f04c97b48c88edccba52b0682fbe45087 upstream. Use standard ror64() instead of hand-written. There is no standard ror64, so create it. The difference is shift value being "unsigned int" instead of uint64_t (for which there is no reason). gcc starts to emit native ROR instructions which it doesn't do for some reason currently. This should make the code faster. Patch survives in-tree crypto test and ping flood with hmac(sha512) on. Signed-off-by: Alexey Dobriyan Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed