8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
0
|
// util/fnv.h, version 1.0.2 |
98e5939 |
Jamozed |
2021-11-27 17:53:46 |
1
|
// FNV hash header file from libutil |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
2
|
// Copyright (C) 2021, Jakob Wakeling |
7f427d9 |
Jamozed |
2022-03-06 12:55:13 |
3
|
// MIT Licence |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
4
|
|
98e5939 |
Jamozed |
2021-11-27 17:53:46 |
5
|
#ifndef UTIL_FNV_H_O4TYU6Q1 |
98e5939 |
Jamozed |
2021-11-27 17:53:46 |
6
|
#define UTIL_FNV_H_O4TYU6Q1 |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
7
|
|
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
8
|
#ifdef __cplusplus |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
9
|
extern "C" { |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
10
|
#endif |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
11
|
|
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
12
|
#include "util.h" |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
13
|
|
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
14
|
extern u32 fnv1a32(const char *dat, UINT len); |
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
15
|
extern u64 fnv1a64(const char *dat, UINT len); |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
16
|
|
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
17
|
extern void fnv1a32_init(u32 *ctx); |
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
18
|
extern void fnv1a32_hash(u32 *ctx, char *dat, UINT len); |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
19
|
|
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
20
|
extern void fnv1a64_init(u64 *ctx); |
7d31e3a |
Jamozed |
2021-12-08 13:59:42 |
21
|
extern void fnv1a64_hash(u64 *ctx, char *dat, UINT len); |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
22
|
|
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
23
|
#ifdef __cplusplus |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
24
|
} // extern "C" |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
25
|
#endif |
12c01d4 |
Jamozed |
2021-09-04 14:07:48 |
26
|
|
98e5939 |
Jamozed |
2021-11-27 17:53:46 |
27
|
#endif // UTIL_FNV_H_O4TYU6Q1 |
|
|
|
28
|
|