Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hash_function.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util_macro.h>

Go to the source code of this file.

Typedefs

typedef uint32_t(* sys_hash_func32_t) (const void *str, size_t n)
 32-bit Hash function interface
 

Functions

static uint32_t sys_hash32_identity (const void *str, size_t n)
 The naive identity hash function.
 
uint32_t sys_hash32_djb2 (const void *str, size_t n)
 Daniel J. Bernstein's hash function.
 
uint32_t sys_hash32_murmur3 (const void *str, size_t n)
 Murmur3 hash function.
 
static uint32_t sys_hash32 (const void *str, size_t n)
 System default 32-bit hash function.