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.
 
#define FNV_INIT   0x811c9dc5
 Initial value of the FNV internal state.
 

Functions

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