[util] Update constexpr hash to be FNV-1a

The constexpr_hash.h header has fallen out of use. As constexpr hashing
will be used for IDs with the service locator protocol, update these
hashes to be 32 and 64 bit FNV-1a, and replace the _h user-defined
literal with _id (a 64-bit hash), and _id8 (a 32-bit hash folded down to
8 bits). These are now in the util/hash.h header along with the runtime
hash functions.
This commit is contained in:
Justin C. Miller
2022-02-22 00:20:00 -08:00
parent 63265728d4
commit 2640cea175
6 changed files with 94 additions and 70 deletions

View File

@@ -9,7 +9,6 @@
#include <j6/syscalls.h>
#include <j6/sysconf.h>
#include <j6/types.h>
#include <util/constexpr_hash.h>
#include "io.h"
#include "serial.h"