summaryrefslogtreecommitdiff
path: root/lib/Support/SHA1.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-11-20 01:41:28 +0000
committerRui Ueyama <ruiu@google.com>2016-11-20 01:41:28 +0000
commitb665150021b7c1e22253d51922b80f65d14e8007 (patch)
tree2f017b1a53986a2325ddf9d3d14652a72403f4fd /lib/Support/SHA1.cpp
parent533eaeefec5df7131fc2448ff9d3c6a7f79b812e (diff)
Attempt to fix big-endian buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SHA1.cpp')
-rw-r--r--lib/Support/SHA1.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Support/SHA1.cpp b/lib/Support/SHA1.cpp
index 987b816e738..88c76395ead 100644
--- a/lib/Support/SHA1.cpp
+++ b/lib/Support/SHA1.cpp
@@ -31,14 +31,7 @@ static uint32_t rol(uint32_t Number, int Bits) {
return (Number << Bits) | (Number >> (32 - Bits));
}
-#ifdef SHA_BIG_ENDIAN
-static uint32_t blk0(uint32_t *Buf, int I) {
- Buf[I] = (rol(Buf[I], 24) & 0xFF00FF00) | (rol(Buf[I], 8) & 0x00FF00FF);
- return Buf[I];
-}
-#else
static uint32_t blk0(uint32_t *Buf, int I) { return Buf[I]; }
-#endif
static uint32_t blk(uint32_t *Buf, int I) {
Buf[I & 15] = rol(Buf[(I + 13) & 15] ^ Buf[(I + 8) & 15] ^ Buf[(I + 2) & 15] ^