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

Function CityHashCrc256Short

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

Requires len < 240.

Source from the content-addressed store, hash-verified

590
591// Requires len < 240.
592static void CityHashCrc256Short(const char *s, size_t len, uint64 *result) {
593 char buf[240];
594 memcpy(buf, s, len);
595 memset(buf + len, 0, 240 - len);
596 CityHashCrc256Long(buf, 240, ~static_cast<uint32>(len), result);
597}
598
599void CityHashCrc256(const char *s, size_t len, uint64 *result) {
600 if (LIKELY(len >= 240)) {

Callers 1

CityHashCrc256Function · 0.85

Calls 1

CityHashCrc256LongFunction · 0.85

Tested by

no test coverage detected