diff options
author | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2014-01-28 00:18:37 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2014-01-28 00:18:37 -0500 |
commit | 7f69662660746eb8559bd3f041bdc4184f639fad (patch) | |
tree | 5336b9626c8ce12dbd366cc637fec0987742bd47 /klm/util/murmur_hash.hh | |
parent | dba017629ff32bbd0af8770ddee88082bb626bee (diff) | |
parent | eecc4cbf5a6e28f910130cd4a58444e9d4701ea9 (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'klm/util/murmur_hash.hh')
-rw-r--r-- | klm/util/murmur_hash.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/klm/util/murmur_hash.hh b/klm/util/murmur_hash.hh index ae7e88de..4891833e 100644 --- a/klm/util/murmur_hash.hh +++ b/klm/util/murmur_hash.hh @@ -5,8 +5,12 @@ namespace util { +// 64-bit machine version uint64_t MurmurHash64A(const void * key, std::size_t len, uint64_t seed = 0); +// 32-bit machine version (not the same function as above) uint64_t MurmurHash64B(const void * key, std::size_t len, uint64_t seed = 0); +// Use the version for this arch. Because the values differ across +// architectures, really only use it for in-memory structures. uint64_t MurmurHashNative(const void * key, std::size_t len, uint64_t seed = 0); } // namespace util |