Lines Matching defs:hash
40 * uint32_t -> uint32_t hash, useful for when you're about to trucate this hash but you
45 static uint32_t Mix(uint32_t hash) {
46 hash ^= hash >> 16;
47 hash *= 0x85ebca6b;
48 hash ^= hash >> 13;
49 hash *= 0xc2b2ae35;
50 hash ^= hash >> 16;
51 return hash;
55 * Calculate 32-bit Murmur hash (murmur3).
56 * This should take 2-3x longer than SkChecksum::Compute, but is a considerably better hash.
61 * @param seed Initial hash seed. (optional)
62 * @return hash result
74 uint32_t hash = seed;
81 hash ^= k;
82 hash = (hash << 13) | (hash >> 19);
83 hash *= 5;
84 hash += 0xe6546b64;
86 hash ^= bytes;
87 return Mix(hash);