summaryrefslogtreecommitdiffstats
path: root/crypto/sha
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2009-12-30 11:53:33 +0000
committerAndy Polyakov <appro@openssl.org>2009-12-30 11:53:33 +0000
commita5313cf36097e690cbcc8841f4b6b3ceee8409cc (patch)
tree52a0516318894aab0d33207d98eec3f90d217e29 /crypto/sha
parentb26c45b0338f88c21a2f3a6c4c4e7cb53351606c (diff)
sha512.c update for esoteric PPC platfrom(s) [from HEAD].
PR: 1998
Diffstat (limited to 'crypto/sha')
-rw-r--r--crypto/sha/sha512.c2
1 files changed, 1 insertions, 1 deletions
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; })