Module fasthash::murmur3 [−][src]
Murmur3
, a suite of non-cryptographic hash functions that was used for hash-based lookups.
by Austin Appleby (aappleby (AT) gmail)
https://sites.google.com/site/murmurhash/
Note
The x86 and x64 versions do not produce the same results, as the algorithms are optimized for their respective platforms. You can still compile and run any of them on any platform, but your performance with the non-native version will be less than optimal.
Example
use std::hash::{Hash, Hasher}; use fasthash::{murmur3, Murmur3Hasher}; fn hash<T: Hash>(t: &T) -> u64 { let mut s: Murmur3Hasher = Default::default(); t.hash(&mut s); s.finish() } let h = murmur3::hash128(b"hello world\xff"); assert_eq!(h as u64, hash(&"hello world"));
Structs
Murmur3Hasher_x64_128 |
An implementation of |
Murmur3Hasher_x86_32 |
An implementation of |
Murmur3Hasher_x86_128 |
An implementation of |
Murmur3_x64_128 |
|
Murmur3_x86_32 |
|
Murmur3_x86_128 |
|
Functions
hash32 |
|
hash128 |
|
hash128_with_seed |
|
hash32_with_seed |
|