8 #include <xxhash/xxhash.h> 12 void make_twox64(
const uint8_t *in, uint32_t len, uint8_t *out) {
14 auto *ptr =
reinterpret_cast<uint64_t *
>(out);
16 ptr[0] = XXH64(in, len, 0);
27 auto *ptr =
reinterpret_cast<uint64_t *
>(out);
29 ptr[0] = XXH64(in, len, 0);
31 ptr[1] = XXH64(in, len, 1);
42 auto *ptr =
reinterpret_cast<uint64_t *
>(out);
44 ptr[0] = XXH64(in, len, 0);
46 ptr[1] = XXH64(in, len, 1);
48 ptr[2] = XXH64(in, len, 2);
50 ptr[3] = XXH64(in, len, 3);
void make_twox64(const uint8_t *in, uint32_t len, uint8_t *out)
void make_twox256(const uint8_t *in, uint32_t len, uint8_t *out)
void make_twox128(const uint8_t *in, uint32_t len, uint8_t *out)