From a10103ed9735b083200dfb78233fce325a9329dc Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 1 Nov 2025 14:21:37 -0700 Subject: Add hash library --- hash/include/fnv1a.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hash/include/fnv1a.h (limited to 'hash/include') diff --git a/hash/include/fnv1a.h b/hash/include/fnv1a.h new file mode 100644 index 0000000..0d2e7cf --- /dev/null +++ b/hash/include/fnv1a.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include + +uint32_t fnv1a32(const void* buffer, size_t size_bytes); + +uint32_t fnv1a32_begin(); +uint32_t fnv1a32_update(uint32_t hash, const void* buffer, size_t size_bytes); -- cgit v1.2.3