common_functions.cpp File Reference

#include "types.hpp"
#include <stdlib.h>

Functions

size_t hashFunction (size_t maxval, const t_uid &uid)
 Main hash function used in double hashing.
size_t hashFunction2 (size_t maxval, const t_uid &uid)
 Second hash function used in double hashing.

Function Documentation

size_t hashFunction ( size_t  maxval,
const t_uid uid 
)

Main hash function used in double hashing.

source: http://www.partow.net/programming/hashfunctions/

Parameters:
maxval Maximum value of the hash
uid 
Returns:
Hash

size_t hashFunction2 ( size_t  maxval,
const t_uid uid 
)

Second hash function used in double hashing.

source: http://www.partow.net/programming/hashfunctions/

Parameters:
maxval Maximum value of the hash
uid 
Returns:
Hash


Generated on Thu Oct 22 16:30:59 2009 for Main server by  doxygen 1.5.6