[llvm] r287475 - Style fix. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 17:15:57 PST 2016
Author: ruiu
Date: Sat Nov 19 19:15:56 2016
New Revision: 287475
URL: http://llvm.org/viewvc/llvm-project?rev=287475&view=rev
Log:
Style fix. NFC.
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=287475&r1=287474&r2=287475&view=diff
==============================================================================
--- llvm/trunk/lib/Support/SHA1.cpp (original)
+++ llvm/trunk/lib/Support/SHA1.cpp Sat Nov 19 19:15:56 2016
@@ -27,8 +27,8 @@ using namespace llvm;
#define SHA_BIG_ENDIAN
#endif
-static uint32_t rol(uint32_t number, int bits) {
- return (number << bits) | (number >> (32 - bits));
+static uint32_t rol(uint32_t Number, int Bits) {
+ return (Number << Bits) | (Number >> (32 - Bits));
}
#ifdef SHA_BIG_ENDIAN
@@ -198,11 +198,11 @@ void SHA1::hashBlock() {
InternalState.State[4] += E;
}
-void SHA1::addUncounted(uint8_t data) {
+void SHA1::addUncounted(uint8_t Data) {
#ifdef SHA_BIG_ENDIAN
- InternalState.Buffer.C[InternalState.BufferOffset] = data;
+ InternalState.Buffer.C[InternalState.BufferOffset] = Data;
#else
- InternalState.Buffer.C[InternalState.BufferOffset ^ 3] = data;
+ InternalState.Buffer.C[InternalState.BufferOffset ^ 3] = Data;
#endif
InternalState.BufferOffset++;
@@ -212,9 +212,9 @@ void SHA1::addUncounted(uint8_t data) {
}
}
-void SHA1::writebyte(uint8_t data) {
+void SHA1::writebyte(uint8_t Data) {
++InternalState.ByteCount;
- addUncounted(data);
+ addUncounted(Data);
}
void SHA1::update(ArrayRef<uint8_t> Data) {
More information about the llvm-commits
mailing list