[llvm] r207703 - Remove unused field hash_state::seed.
Jay Foad
jay.foad at gmail.com
Wed Apr 30 14:12:17 PDT 2014
Author: foad
Date: Wed Apr 30 16:12:17 2014
New Revision: 207703
URL: http://llvm.org/viewvc/llvm-project?rev=207703&view=rev
Log:
Remove unused field hash_state::seed.
Modified:
llvm/trunk/include/llvm/ADT/Hashing.h
Modified: llvm/trunk/include/llvm/ADT/Hashing.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Hashing.h?rev=207703&r1=207702&r2=207703&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Hashing.h (original)
+++ llvm/trunk/include/llvm/ADT/Hashing.h Wed Apr 30 16:12:17 2014
@@ -265,7 +265,6 @@ inline uint64_t hash_short(const char *s
/// keeps 56 bytes of arbitrary state.
struct hash_state {
uint64_t h0, h1, h2, h3, h4, h5, h6;
- uint64_t seed;
/// \brief Create a new hash_state structure and initialize it based on the
/// seed and the first 64-byte chunk.
@@ -273,7 +272,7 @@ struct hash_state {
static hash_state create(const char *s, uint64_t seed) {
hash_state state = {
0, seed, hash_16_bytes(seed, k1), rotate(seed ^ k1, 49),
- seed * k1, shift_mix(seed), 0, seed };
+ seed * k1, shift_mix(seed), 0 };
state.h6 = hash_16_bytes(state.h4, state.h5);
state.mix(s);
return state;
More information about the llvm-commits
mailing list