csnip  0.1
Macros | Functions
hash.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for hash.h:

Go to the source code of this file.

Macros

#define CSNIP_FNV32_INIT   ((uint32_t)0x811C9DC5ul)
 FNV32's initialization constant.
 
#define CSNIP_FNV64_INIT   ((uint64_t)0xCBF29CE484222325ull)
 FNV64's initialization constant.
 

Functions

uint32_t csnip_hash_fnv32_b (const void *buf, size_t sz, uint32_t h0)
 Compute FNV32 hash. More...
 
uint32_t csnip_hash_fnv32_s (const char *str, uint32_t h0)
 Compute FNV32 hash. More...
 
uint64_t csnip_hash_fnv64_b (const void *buf, size_t sz, uint64_t h0)
 Compute FNV64 hash. More...
 
uint64_t csnip_hash_fnv64_s (const char *str, uint64_t h0)
 Compute FNV64 hash. More...