Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
src/kenlm/util/murmur_hash.hh
00001 #ifndef UTIL_MURMUR_HASH_H
00002 #define UTIL_MURMUR_HASH_H
00003 #include <cstddef>
00004 #include <stdint.h>
00005 
00006 namespace util {
00007 
00008 // 64-bit machine version
00009 uint64_t MurmurHash64A(const void * key, std::size_t len, uint64_t seed = 0);
00010 // 32-bit machine version (not the same function as above)
00011 uint64_t MurmurHash64B(const void * key, std::size_t len, uint64_t seed = 0);
00012 // Use the version for this arch.  Because the values differ across
00013 // architectures, really only use it for in-memory structures.
00014 uint64_t MurmurHashNative(const void * key, std::size_t len, uint64_t seed = 0);
00015 
00016 } // namespace util
00017 
00018 #endif // UTIL_MURMUR_HASH_H