diff options
author | Rui Ueyama <ruiu@google.com> | 2016-11-20 01:41:28 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-11-20 01:41:28 +0000 |
commit | b665150021b7c1e22253d51922b80f65d14e8007 (patch) | |
tree | 2f017b1a53986a2325ddf9d3d14652a72403f4fd /lib/Support/SHA1.cpp | |
parent | 533eaeefec5df7131fc2448ff9d3c6a7f79b812e (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.cpp | 7 |
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] ^ |