liba
0.1.15
An algorithm library based on C/C++
Toggle main menu visibility
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)
18
extern
"C"
{
19
#endif
/* __cplusplus */
20
27
A_EXTERN
a_u32
a_hash_bkdr
(
void
const
*str,
a_u32
val);
28
36
A_EXTERN
a_u32
a_hash_bkdr_
(
void
const
*ptr,
a_size
siz,
a_u32
val);
37
44
A_EXTERN
a_u32
a_hash_sdbm
(
void
const
*str,
a_u32
val);
45
53
A_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 */
a.h
algorithm library
a_hash_sdbm_
a_u32 a_hash_sdbm_(void const *ptr, a_size siz, a_u32 val)
a hash function whose prime number is 65599
a_hash_sdbm
a_u32 a_hash_sdbm(void const *str, a_u32 val)
a hash function whose prime number is 65599
a_hash_bkdr
a_u32 a_hash_bkdr(void const *str, a_u32 val)
a hash function whose prime number is 131
a_hash_bkdr_
a_u32 a_hash_bkdr_(void const *ptr, a_size siz, a_u32 val)
a hash function whose prime number is 131
a_u32
unsigned long a_u32
unsigned integer type with width of exactly 32 bits
Definition
a.h:538
a_size
size_t a_size
unsigned integer type returned by the sizeof operator
Definition
a.h:823
hash.h
Generated by
1.17.0