lookup3.h File Reference

This file contains header definitions for the hash functions we use. More...

Functions

uint32_t hashword (const uint32_t *k, size_t length, uint32_t initval)
 Hash key made of 4byte chunks.
uint32_t hashlittle (const void *k, size_t length, uint32_t initval)
 Hash key data.

Detailed Description

This file contains header definitions for the hash functions we use.

The hash functions are public domain (see lookup3.c).


Function Documentation

uint32_t hashword ( const uint32_t *  k,
size_t  length,
uint32_t  initval 
)

Hash key made of 4byte chunks.

Parameters:
k,: the key, an array of uint32_t values
length,: the length of the key, in uint32_ts
initval,: the previous hash, or an arbitrary value
Returns:
: hash value.
uint32_t hashlittle ( const void *  k,
size_t  length,
uint32_t  initval 
)

Hash key data.

Parameters:
k,: the key, array of uint8_t
length,: the length of the key, in uint8_ts
initval,: the previous hash, or an arbitrary value
Returns:
: hash value.
Generated on Thu Apr 22 00:27:07 2010 for unbound by  doxygen 1.6.3