Tinyhash
This is a library containing multiple C implementations of hashmap.
Loading...
Searching...
No Matches
Functions
hash.h File Reference
#include <stdint.h>
#include <stdio.h>
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t th_hash (uint8_t *bytes, size_t size)
 Compute an unsigned int from bytes.
 

Function Documentation

◆ th_hash()

uint32_t th_hash ( uint8_t * bytes,
size_t size )

Compute an unsigned int from bytes.

Parameters
bytes
size
Returns
uint32_t

Definition at line 16 of file hash.c.

References TH_HASH_INITIAL_VALUE, and TH_HASH_MUL_VALUE.

Referenced by th_key_create().

Here is the caller graph for this function: