diff options
author | Jay Foad <jay.foad@gmail.com> | 2014-04-30 21:12:17 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2014-04-30 21:12:17 +0000 |
commit | f978570c9a60ec287edbfcf5051f10ff9857e723 (patch) | |
tree | ab43561e3d5a6c43124f580f561150190a49f9a9 | |
parent | fa1cf8cd6816491cf8b78ae24cce68d640be459f (diff) | |
download | llvm-f978570c9a60ec287edbfcf5051f10ff9857e723.tar.gz llvm-f978570c9a60ec287edbfcf5051f10ff9857e723.tar.bz2 llvm-f978570c9a60ec287edbfcf5051f10ff9857e723.tar.xz |
Remove unused field hash_state::seed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/Hashing.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/Hashing.h b/include/llvm/ADT/Hashing.h index 1b84b45675..b11e3c1c50 100644 --- a/include/llvm/ADT/Hashing.h +++ b/include/llvm/ADT/Hashing.h @@ -265,7 +265,6 @@ inline uint64_t hash_short(const char *s, size_t length, uint64_t seed) { /// 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; |