diff options
Diffstat (limited to 'tensorflow/core/lib/hash')
-rw-r--r-- | tensorflow/core/lib/hash/hash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/lib/hash/hash.h b/tensorflow/core/lib/hash/hash.h index 4d3cb9cc9d..3c71e7d6cc 100644 --- a/tensorflow/core/lib/hash/hash.h +++ b/tensorflow/core/lib/hash/hash.h @@ -38,6 +38,10 @@ inline uint64 Hash64(const string& str) { return Hash64(str.data(), str.size()); } +inline uint64 Hash64Combine(uint64 a, uint64 b) { + return a ^ (b + 0x9e3779b97f4a7800ULL + (a << 10) + (a >> 4)); +} + } // namespace tensorflow #endif // TENSORFLOW_LIB_HASH_HASH_H_ |