| M E M _ F N V 1 2 8 H A S H ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - MEM_#?
----------------------------------------------------------------------------
NAME
mem_fnv128hash() - 128 bit FNV-1a routine that works
on memory region.
SYNOPSIS
hash = mem_fnv128hash(vuq128, memptr, memlen);
ULONG mem_fnv128hash(VUQ128 *, void *, LONG);
FUNCTION
This function allows to hash memory region using FNV1a
routine.
INPUTS
vuq128 - Pointer to 128bit datatype. Can be NULL so the
only output will be lower 32 bits through the
'hash'.
memptr - Data pointer.
memlen - Length of that data.
RETURNS
Returns low 32 bits of 'vuq128' or its initializer if
data is 0.
BASES
None.
NOTES
This function should produce the very same values as
the 'txt_fnv128hash()' one.
Important! Arg. in 'vuq128' must generally be inited
to 0 before passing! This will not clobber the builtin
initializer!
Beware this routine is 0 sensitive, which means it may
be unsuitable to hash some nasty memory blocks!
This routine is very slow so use only when absolutely
necessary.
SEE ALSO
txt_fnv128hash(), txt_fnv64hash()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |