From: Andy Polyakov Date: Wed, 30 Dec 2009 11:53:33 +0000 (+0000) Subject: sha512.c update for esoteric PPC platfrom(s) [from HEAD]. X-Git-Tag: OpenSSL_1_0_0-beta5~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5313cf36097e690cbcc8841f4b6b3ceee8409cc;p=oweals%2Fopenssl.git sha512.c update for esoteric PPC platfrom(s) [from HEAD]. PR: 1998 --- diff --git a/crypto/sha/sha512.c b/crypto/sha/sha512.c index d1aa7614b2..cbc0e58c48 100644 --- a/crypto/sha/sha512.c +++ b/crypto/sha/sha512.c @@ -380,7 +380,7 @@ static const SHA_LONG64 K512[80] = { ((SHA_LONG64)hi)<<32|lo; }) # endif # elif (defined(_ARCH_PPC) && defined(__64BIT__)) || defined(_ARCH_PPC64) -# define ROTR(a,n) ({ unsigned long ret; \ +# define ROTR(a,n) ({ SHA_LONG64 ret; \ asm ("rotrdi %0,%1,%2" \ : "=r"(ret) \ : "r"(a),"K"(n)); ret; })