liba 0.1.15
An algorithm library based on C/C++
 
Loading...
Searching...
No Matches
hash function
Collaboration diagram for hash function:

Functions

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
 
a_u32 a_hash_sdbm (void const *str, a_u32 val)
 a hash function whose prime number is 65599
 
a_u32 a_hash_sdbm_ (void const *ptr, a_size siz, a_u32 val)
 a hash function whose prime number is 65599
 

Detailed Description

Function Documentation

◆ a_hash_bkdr()

a_u32 a_hash_bkdr ( void const * str,
a_u32 val )

a hash function whose prime number is 131

Parameters
[in]strstring to be processed
[in]valinitial value
Returns
hash value

◆ 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

Parameters
[in]ptrpoints to string to be processed
[in]sizlength of string to be processed
[in]valinitial value
Returns
hash value

◆ a_hash_sdbm()

a_u32 a_hash_sdbm ( void const * str,
a_u32 val )

a hash function whose prime number is 65599

Parameters
[in]strstring to be processed
[in]valinitial value
Returns
hash value

◆ 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

Parameters
[in]ptrpoints to string to be processed
[in]sizlength of string to be processed
[in]valinitial value
Returns
hash value