diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/whrlpool/wp_block.c')
-rw-r--r-- | src/lib/libssl/src/crypto/whrlpool/wp_block.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/src/crypto/whrlpool/wp_block.c b/src/lib/libssl/src/crypto/whrlpool/wp_block.c index 92d834e289..d357e529ca 100644 --- a/src/lib/libssl/src/crypto/whrlpool/wp_block.c +++ b/src/lib/libssl/src/crypto/whrlpool/wp_block.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wp_block.c,v 1.8 2014/07/08 16:15:20 miod Exp $ */ | 1 | /* $OpenBSD: wp_block.c,v 1.9 2014/07/09 16:06:13 miod Exp $ */ |
2 | /** | 2 | /** |
3 | * The Whirlpool hashing function. | 3 | * The Whirlpool hashing function. |
4 | * | 4 | * |
@@ -76,7 +76,7 @@ typedef unsigned long long u64; | |||
76 | # define ROTATE(a,n) ({ u64 ret; asm ("rolq %1,%0" \ | 76 | # define ROTATE(a,n) ({ u64 ret; asm ("rolq %1,%0" \ |
77 | : "=r"(ret) : "J"(n),"0"(a) : "cc"); ret; }) | 77 | : "=r"(ret) : "J"(n),"0"(a) : "cc"); ret; }) |
78 | # elif defined(__ia64) || defined(__ia64__) | 78 | # elif defined(__ia64) || defined(__ia64__) |
79 | # if _BYTE_ORDER == _LITTLE_ENDIAN | 79 | # if BYTE_ORDER == LITTLE_ENDIAN |
80 | # define ROTATE(a,n) ({ u64 ret; asm ("shrp %0=%1,%1,%2" \ | 80 | # define ROTATE(a,n) ({ u64 ret; asm ("shrp %0=%1,%1,%2" \ |
81 | : "=r"(ret) : "r"(a),"M"(64-(n))); ret; }) | 81 | : "=r"(ret) : "r"(a),"M"(64-(n))); ret; }) |
82 | # else | 82 | # else |
@@ -88,7 +88,7 @@ typedef unsigned long long u64; | |||
88 | 88 | ||
89 | #if defined(OPENSSL_SMALL_FOOTPRINT) | 89 | #if defined(OPENSSL_SMALL_FOOTPRINT) |
90 | # if !defined(ROTATE) | 90 | # if !defined(ROTATE) |
91 | # if _BYTE_ORDER == _LITTLE_ENDIAN /* little-endians have to rotate left */ | 91 | # if BYTE_ORDER == LITTLE_ENDIAN /* little-endians have to rotate left */ |
92 | # define ROTATE(i,n) ((i)<<(n) ^ (i)>>(64-n)) | 92 | # define ROTATE(i,n) ((i)<<(n) ^ (i)>>(64-n)) |
93 | # else /* big-endians have to rotate right */ | 93 | # else /* big-endians have to rotate right */ |
94 | # define ROTATE(i,n) ((i)>>(n) ^ (i)<<(64-n)) | 94 | # define ROTATE(i,n) ((i)>>(n) ^ (i)<<(64-n)) |