| T X T _ F N V 1 2 8 H A S H ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_fnv128hash() - Allows to hash any NULL terminated
string using 128 bit FNV-1a.
SYNOPSIS
hash = txt_fnv128hash(vuq128, str);
ULONG txt_fnv128hash(VUQ128 *, UBYTE *);
FUNCTION
This function allows to hash a string using FNV128a
routine. Thanks to prime numbers and 128bit datatype
this routine has extremally low repetition rate.
INPUTS
vuq128 - Ptr to 128bit datatype. Can be NULL so the
only output will be lower 32 bits through the
'hash'.
string - NULL terminated string.
RETURNS
Returns low 32 bits of 'vuq128' or hash base if string
is NULL.
BASES
None.
NOTES
Case insensitive version of this routine exists and
its called 'txt_fnv128ihash()'.
SEE ALSO
mem_fnv128hash(), mem_fnv64hash()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |