Home | History | Annotate | Download | only in core

Lines Matching refs:hash

42      * uint32_t -> uint32_t hash, useful for when you're about to trucate this hash but you
47 static uint32_t Mix(uint32_t hash) {
48 hash ^= hash >> 16;
49 hash *= 0x85ebca6b;
50 hash ^= hash >> 13;
51 hash *= 0xc2b2ae35;
52 hash ^= hash >> 16;
53 return hash;
57 * uint32_t -> uint32_t hash, useful for when you're about to trucate this hash but you
62 static uint32_t CheapMix(uint32_t hash) {
63 hash ^= hash >> 16;
64 hash *= 0x85ebca6b;
65 hash ^= hash >> 16;
66 return hash;
70 * Calculate 32-bit Murmur hash (murmur3).
71 * This should take 2-3x longer than SkChecksum::Compute, but is a considerably better hash.
76 * @param seed Initial hash seed. (optional)
77 * @return hash result
88 uint32_t hash = seed;
95 hash ^= k;
96 hash = (hash << 13) | (hash >> 19);
97 hash *= 5;
98 hash += 0xe6546b64;
111 hash ^= k;
114 hash ^= bytes;
115 return Mix(hash);