[llvm] r287476 - Attempt to fix big-endian buildbots.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 17:41:29 PST 2016
Author: ruiu
Date: Sat Nov 19 19:41:28 2016
New Revision: 287476
URL: http://llvm.org/viewvc/llvm-project?rev=287476&view=rev
Log:
Attempt to fix big-endian buildbots.
Modified:
llvm/trunk/lib/Support/SHA1.cpp
Modified: llvm/trunk/lib/Support/SHA1.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/SHA1.cpp?rev=287476&r1=287475&r2=287476&view=diff
==============================================================================
--- llvm/trunk/lib/Support/SHA1.cpp (original)
+++ llvm/trunk/lib/Support/SHA1.cpp Sat Nov 19 19:41:28 2016
@@ -31,14 +31,7 @@ static uint32_t rol(uint32_t Number, int
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] ^
More information about the llvm-commits
mailing list