28 for (
Size i = 0; i < size; i++)
42 for (
Size i = 0; i < 4; i++)
45 ret ^= (((
uint) key) >> (i*8)) & 0xff;
Size length() const
Same as count().
#define assert(exp)
Insert program diagnostics.
Size hash(const String &key, Size mod)
Compute a hash using the FNV algorithm.
#define FNV_INIT
Initial value of the FNV internal state.
unsigned int uint
Unsigned integer number.
unsigned int Size
Any sane size indicator cannot go negative.
#define FNV_PRIME
Prime number used by FNV hashing.