hash

  1. overview
  2. functions
    1. hash_fnv64
    2. hash_mmh64
    3. hash_crc64

overview

The hash module provides a set of implementations for the fn_hash64 interface.

functions

hash_fnv64

Compute a 64-bit hash using the Fowler-Noll-Vo hash function.

hash64 hash_fnv64 ( const void *const k, size_t l );

Parameters

format
format string
...
variadic arguments

Returns

  • 1 on success, 0 on error

hash_mmh64

Compute a 64-bit hash using the MurMur hash function.

hash64 hash_mmh64 ( const void *const k, size_t l );

Parameters

format
format string
...
variadic arguments

Returns

  • 1 on success, 0 on error

hash_crc64

Compute a 64-bit hash using the cyclic redundancy check hash function.

hash64 hash_crc64 ( const void *const k, size_t l );

Parameters

format
format string
...
variadic arguments

Returns

  • 1 on success, 0 on error