Files
2014-10-26 14:27:26 +01:00

39 lines
536 B
C

#ifndef UC_HASH_H_
#define UC_HASH_H_
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
uint32_t
uc_crc32(const uint8_t *buf, size_t len);
uint32_t
uc_djbhash(const char *str);
unsigned int
uc_elfhash(const char *str, unsigned int len);
uint64_t
uc_hash64shift(uint64_t key);
uint32_t
uc_hashuint(uint32_t a);
uint32_t
uc_pjwhash(const char *str,size_t len);
uint32_t
uc_sax_hash(void *key, size_t len);
unsigned long
uc_sdbmhash(const unsigned char *str);
#ifdef __cplusplus
}
#endif
#endif