/usr/include/genht/hash.h is in libgenht1-dev 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /* assumes sizeof(unsigned)==4 */
/* not for strings: does unaligned access and reads past the end of key */
/* bob jenkins: lookup 3 */
unsigned jenhash(const void *key, unsigned len);
unsigned jenhash32(unsigned k);
/* austin appleby: murmur 2 */
unsigned murmurhash(const void *key, unsigned len);
unsigned murmurhash32(unsigned k);
/* simple hash for aligned pointers */
unsigned ptrhash(const void *k);
/* simple string hash - case sensitive and case-insensitive */
unsigned strhash(const char *k);
unsigned strhash_case(const char *key);
/* string keyeq functions - case sensitive and case-insensitive */
int strkeyeq(const char *a, const char *b);
int strkeyeq_case(const char *a, const char *b);
/* pointer match for htp*_t */
int ptrkeyeq(const void *a, const void *b);
/* long (int) */
unsigned longhash(long int l);
int longkeyeq(long a, long b);
|