| T X T _ F N V 6 4 H A S H ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_fnv64hash() - Allows to hash any NULL term. string.
SYNOPSIS
hash = txt_fnv64hash(vuq, str);
ULONG txt_fnv64hash(VUQUAD *, UBYTE *);
FUNCTION
This function allows to hash a string using FNV64a
routine. Thanks to prime numbers and 64bit datatype
this routine has extremally low repetition rate.
INPUTS
vuq - Pointer to 64bit datatype. Can be NULL so the
only output will be lower 32 bits through the
'hash'.
string - NULL terminated string.
RETURNS
Returns 32bit or 64bit value or hash base if string is
NULL.
BASES
None.
NOTES
Plain 32bit version of this routine exists and can be
found in the header file as a macro.
Case insensitive version of this routine exists and
its called 'txt_fnv64ihash()'.
SEE ALSO
mem_pjw64hash(), mem_fnv64hash(), mem_fnv128hash()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |