liba 0.1.15
An algorithm library based on C/C++
 
Loading...
Searching...
No Matches
hash.h
Go to the documentation of this file.
1
5
6#ifndef LIBA_HASH_H
7#define LIBA_HASH_H
8
9#include "a.h"
10
16
17#if defined(__cplusplus)
18extern "C" {
19#endif /* __cplusplus */
20
27A_EXTERN a_u32 a_hash_bkdr(void const *str, a_u32 val);
28
36A_EXTERN a_u32 a_hash_bkdr_(void const *ptr, a_size siz, a_u32 val);
37
44A_EXTERN a_u32 a_hash_sdbm(void const *str, a_u32 val);
45
53A_EXTERN a_u32 a_hash_sdbm_(void const *ptr, a_size siz, a_u32 val);
54
55#if defined(__cplusplus)
56} /* extern "C" */
57#endif /* __cplusplus */
58
60
61#endif /* a/hash.h */
algorithm library
a_u32 a_hash_sdbm_(void const *ptr, a_size siz, a_u32 val)
a hash function whose prime number is 65599
a_u32 a_hash_sdbm(void const *str, a_u32 val)
a hash function whose prime number is 65599
a_u32 a_hash_bkdr(void const *str, a_u32 val)
a hash function whose prime number is 131
a_u32 a_hash_bkdr_(void const *ptr, a_size siz, a_u32 val)
a hash function whose prime number is 131
unsigned long a_u32
unsigned integer type with width of exactly 32 bits
Definition a.h:538
size_t a_size
unsigned integer type returned by the sizeof operator
Definition a.h:823