summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commite5669cecde86ebf2be36dc33e1dd49e0c0ae0fa2 (patch)
tree29953b042e73fb53bddc3232e3089822884b4bc1 /llvm/lib/Support
parent567d9c4b8f4c54c4c8c77358740184f001053a1e (diff)
downloadbcm5719-llvm-e5669cecde86ebf2be36dc33e1dd49e0c0ae0fa2.tar.gz
bcm5719-llvm-e5669cecde86ebf2be36dc33e1dd49e0c0ae0fa2.zip
Attempt to fix big-endian buildbots.
llvm-svn: 287476
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/SHA1.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Support/SHA1.cpp b/llvm/lib/Support/SHA1.cpp
index 987b816e738..88c76395ead 100644
--- a/llvm/lib/Support/SHA1.cpp
+++ b/llvm/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] ^
OpenPOWER on IntegriCloud