012345678910111213141516171819202122232425262728
|
// util/fnv.h, version 1.0.2
// FNV hash header file from libutil
// Copyright (C) 2021, Jakob Wakeling
// MIT Licence
#ifndef UTIL_FNV_H_O4TYU6Q1
#define UTIL_FNV_H_O4TYU6Q1
#ifdef __cplusplus
extern "C" {
#endif
#include "util.h"
extern u32 fnv1a32(const char *dat, UINT len);
extern u64 fnv1a64(const char *dat, UINT len);
extern void fnv1a32_init(u32 *ctx);
extern void fnv1a32_hash(u32 *ctx, char *dat, UINT len);
extern void fnv1a64_init(u64 *ctx);
extern void fnv1a64_hash(u64 *ctx, char *dat, UINT len);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // UTIL_FNV_H_O4TYU6Q1
|