|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
00001 #ifndef UTIL_MURMUR_HASH__ 00002 #define UTIL_MURMUR_HASH__ 00003 #include <cstddef> 00004 #include <inttypes.h> 00005 00006 namespace util { 00007 00008 uint64_t MurmurHash64A(const void * key, std::size_t len, unsigned int seed = 0); 00009 uint64_t MurmurHash64B(const void * key, std::size_t len, unsigned int seed = 0); 00010 uint64_t MurmurHashNative(const void * key, std::size_t len, unsigned int seed = 0); 00011 00012 } // namespace util 00013 00014 #endif // UTIL_MURMUR_HASH__