PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | UINT32_ALIGN_MASK (sizeof(uint32) - 1) |
#define | rot(x, k) pg_rotate_left32(x, k) |
#define | mix(a, b, c) |
#define | final(a, b, c) |
Functions | |
uint32 | hash_bytes (const unsigned char *k, int keylen) |
uint64 | hash_bytes_extended (const unsigned char *k, int keylen, uint64 seed) |
uint32 | hash_bytes_uint32 (uint32 k) |
uint64 | hash_bytes_uint32_extended (uint32 k, uint64 seed) |
uint32 | string_hash (const void *key, Size keysize) |
uint32 | tag_hash (const void *key, Size keysize) |
uint32 | uint32_hash (const void *key, Size keysize) |
#define rot | ( | x, | |
k | |||
) | pg_rotate_left32(x, k) |
uint32 hash_bytes | ( | const unsigned char * | k, |
int | keylen | ||
) |
Definition at line 146 of file hashfn.c.
References a, b, len, mix, and UINT32_ALIGN_MASK.
Referenced by datum_image_hash(), hash_any(), hash_string_pointer(), json_unique_hash(), missing_hash(), string_hash(), and tag_hash().
uint64 hash_bytes_extended | ( | const unsigned char * | k, |
int | keylen, | ||
uint64 | seed | ||
) |
Definition at line 372 of file hashfn.c.
References a, b, len, mix, and UINT32_ALIGN_MASK.
Referenced by hash_any_extended().
Definition at line 610 of file hashfn.c.
Referenced by hash_uint32(), hashagg_spill_tuple(), json_unique_hash(), and uint32_hash().
uint64 hash_bytes_uint32_extended | ( | uint32 | k, |
uint64 | seed | ||
) |
Definition at line 631 of file hashfn.c.
Referenced by bloom_add_value(), bloom_contains_value(), and hash_uint32_extended().
Definition at line 660 of file hashfn.c.
References hash_bytes(), sort-test::key, and Min.
Referenced by dshash_strhash(), and hash_create().
Definition at line 677 of file hashfn.c.
References hash_bytes(), and sort-test::key.
Referenced by dshash_memhash(), and hash_create().
Definition at line 688 of file hashfn.c.
References Assert, hash_bytes_uint32(), and sort-test::key.
Referenced by hash_create().