MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / WeakHashLen32WithSeeds

Function WeakHashLen32WithSeeds

extern/libcds/test/stress/framework/city.cpp:305–314  ·  view source on GitHub ↗

Return a 16-byte hash for 48 bytes. Quick and dirty. Callers do best to use "random-looking" values for a and b.

Source from the content-addressed store, hash-verified

303// Return a 16-byte hash for 48 bytes. Quick and dirty.
304// Callers do best to use "random-looking" values for a and b.
305static pair<uint64, uint64> WeakHashLen32WithSeeds(
306 uint64 w, uint64 x, uint64 y, uint64 z, uint64 a, uint64 b) {
307 a += w;
308 b = Rotate(b + a + z, 21);
309 uint64 c = a;
310 a += x;
311 a += y;
312 b += Rotate(a, 44);
313 return make_pair(a + z, b + c);
314}
315
316// Return a 16-byte hash for s[0] ... s[31], a, and b. Quick and dirty.
317static pair<uint64, uint64> WeakHashLen32WithSeeds(

Callers 2

CityHash64Function · 0.85
CityHash128WithSeedFunction · 0.85

Calls 3

RotateFunction · 0.85
make_pairFunction · 0.85
Fetch64Function · 0.85

Tested by

no test coverage detected