FreeNOS
Macros | Functions
HashFunction.h File Reference
#include "Types.h"
#include "String.h"

Go to the source code of this file.

Macros

#define FNV_PRIME   16777619
 Prime number used by FNV hashing. More...
 
#define FNV_INIT   0x811c9dc5
 Initial value of the FNV internal state. More...
 

Functions

Size hash (const String &key, Size mod)
 Compute a hash using the FNV algorithm. More...
 
Size hash (int key, Size mod)
 Compute a hash using the FNV algorithm. More...