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

Function CityHashCrc128WithSeed

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

Source from the content-addressed store, hash-verified

605}
606
607uint128 CityHashCrc128WithSeed(const char *s, size_t len, uint128 seed) {
608 if (len <= 900) {
609 return CityHash128WithSeed(s, len, seed);
610 } else {
611 uint64 result[4];
612 CityHashCrc256(s, len, result);
613 uint64 u = Uint128High64(seed) + result[0];
614 uint64 v = Uint128Low64(seed) + result[1];
615 return uint128(HashLen16(u, v + result[2]),
616 HashLen16(Rotate(v, 32), u * k0 + result[3]));
617 }
618}
619
620uint128 CityHashCrc128(const char *s, size_t len) {
621 if (len <= 900) {

Callers

nothing calls this directly

Calls 6

CityHash128WithSeedFunction · 0.85
CityHashCrc256Function · 0.85
HashLen16Function · 0.85
RotateFunction · 0.85
Uint128High64Function · 0.50
Uint128Low64Function · 0.50

Tested by

no test coverage detected