PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /usr/src/file_protector-1.1-1592/ |
| Server: Linux ituca148.hostpapavps.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 IP: 216.7.89.187 |
| Dir : //usr/src/file_protector-1.1-1592/hash_fast.h |
/**
@file file_path_tools.h
@brief Various hashes with well known performance characteristics
@details Copyright (c) 2025 Acronis International GmbH
@author Denis Kopyrin (denis.kopyrin@acronis.com)
@since $Id: $
*/
#pragma once
#ifdef KERNEL_MOCK
#include "mock/mock.h"
#endif
#include <linux/types.h>
static inline uint64_t moremur(uint64_t x)
{
x ^= x >> 27;
x *= 0x3C79AC492BA7B653UL;
x ^= x >> 33;
x *= 0x1C69B3F74AC4AE35UL;
x ^= x >> 27;
return x;
}
static inline uint64_t moremur_hash(uint64_t val, unsigned int bits)
{
return moremur(val) >> (64 - bits);
}
uint64_t murmur_hash(const void * key, int len) __attribute__((pure));