sha512.c update for esoteric PPC platfrom(s) [from HEAD].

PR: 1998
This commit is contained in:
Andy Polyakov 2009-12-30 11:53:33 +00:00
parent b26c45b033
commit a5313cf360

View File

@ -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; })