• Home
  • Raw
  • Download

Lines Matching refs:uint64_t

44 static uint64_t Fetch64(const char *p) {  in Fetch64()
53 static const uint64_t k0 = 0xc3a5c85c97cb3127ULL;
54 static const uint64_t k1 = 0xb492b66fbe98f273ULL;
55 static const uint64_t k2 = 0x9ae16a3b2f90404fULL;
196 static uint64_t Rotate(uint64_t val, int shift) { in Rotate()
201 static uint64_t ShiftMix(uint64_t val) { return val ^ (val >> 47); } in ShiftMix()
203 static uint64_t HashLen16(uint64_t u, uint64_t v) { in HashLen16()
207 static uint64_t HashLen16(uint64_t u, uint64_t v, uint64_t mul) { in HashLen16()
209 uint64_t a = (u ^ v) * mul; in HashLen16()
211 uint64_t b = (v ^ a) * mul; in HashLen16()
217 static uint64_t HashLen0to16(const char *s, size_t len) { in HashLen0to16()
219 uint64_t mul = k2 + len * 2; in HashLen0to16()
220 uint64_t a = Fetch64(s) + k2; in HashLen0to16()
221 uint64_t b = Fetch64(s + len - 8); in HashLen0to16()
222 uint64_t c = Rotate(b, 37) * mul + a; in HashLen0to16()
223 uint64_t d = (Rotate(a, 25) + b) * mul; in HashLen0to16()
227 uint64_t mul = k2 + len * 2; in HashLen0to16()
228 uint64_t a = Fetch32(s); in HashLen0to16()
244 static uint64_t HashLen17to32(const char *s, size_t len) { in HashLen17to32()
245 uint64_t mul = k2 + len * 2; in HashLen17to32()
246 uint64_t a = Fetch64(s) * k1; in HashLen17to32()
247 uint64_t b = Fetch64(s + 8); in HashLen17to32()
248 uint64_t c = Fetch64(s + len - 8) * mul; in HashLen17to32()
249 uint64_t d = Fetch64(s + len - 16) * k2; in HashLen17to32()
256 static std::pair<uint64_t, uint64_t> WeakHashLen32WithSeeds(uint64_t w, uint64_t x, in WeakHashLen32WithSeeds()
257 uint64_t y, uint64_t z, in WeakHashLen32WithSeeds()
258 uint64_t a, uint64_t b) { in WeakHashLen32WithSeeds()
261 uint64_t c = a; in WeakHashLen32WithSeeds()
269 static std::pair<uint64_t, uint64_t> WeakHashLen32WithSeeds(const char *s, uint64_t a, in WeakHashLen32WithSeeds()
270 uint64_t b) { in WeakHashLen32WithSeeds()
276 static uint64_t HashLen33to64(const char *s, size_t len) { in HashLen33to64()
277 uint64_t mul = k2 + len * 2; in HashLen33to64()
278 uint64_t a = Fetch64(s) * k2; in HashLen33to64()
279 uint64_t b = Fetch64(s + 8); in HashLen33to64()
280 uint64_t c = Fetch64(s + len - 24); in HashLen33to64()
281 uint64_t d = Fetch64(s + len - 32); in HashLen33to64()
282 uint64_t e = Fetch64(s + 16) * k2; in HashLen33to64()
283 uint64_t f = Fetch64(s + 24) * 9; in HashLen33to64()
284 uint64_t g = Fetch64(s + len - 8); in HashLen33to64()
285 uint64_t h = Fetch64(s + len - 16) * mul; in HashLen33to64()
286 uint64_t u = Rotate(a + g, 43) + (Rotate(b, 30) + c) * 9; in HashLen33to64()
287 uint64_t v = ((a + g) ^ d) + f + 1; in HashLen33to64()
288 uint64_t w = absl::gbswap_64((u + v) * mul) + h; in HashLen33to64()
289 uint64_t x = Rotate(e + f, 42) + c; in HashLen33to64()
290 uint64_t y = (absl::gbswap_64((v + w) * mul) + g) * mul; in HashLen33to64()
291 uint64_t z = e + f + c; in HashLen33to64()
297 uint64_t CityHash64(const char *s, size_t len) { in CityHash64()
310 uint64_t x = Fetch64(s + len - 40); in CityHash64()
311 uint64_t y = Fetch64(s + len - 16) + Fetch64(s + len - 56); in CityHash64()
312 uint64_t z = HashLen16(Fetch64(s + len - 48) + len, Fetch64(s + len - 24)); in CityHash64()
313 std::pair<uint64_t, uint64_t> v = WeakHashLen32WithSeeds(s + len - 64, len, z); in CityHash64()
314 std::pair<uint64_t, uint64_t> w = WeakHashLen32WithSeeds(s + len - 32, y + k1, x); in CityHash64()
335 uint64_t CityHash64WithSeed(const char *s, size_t len, uint64_t seed) { in CityHash64WithSeed()
339 uint64_t CityHash64WithSeeds(const char *s, size_t len, uint64_t seed0, in CityHash64WithSeeds()
340 uint64_t seed1) { in CityHash64WithSeeds()