diff options
| author | 2022-08-13 13:00:37 +0200 | |
|---|---|---|
| committer | 2022-08-13 13:00:37 +0200 | |
| commit | a4ddca68662f4bc0531763357b4bc00b6c50b456 (patch) | |
| tree | 97f83407da049732ec97dd2d32ee34e0cd3c8c0f /src/util.cff | |
| parent | 5b95abb249604e7df9be1d63b1f3dc85b8f5990b (diff) | |
target
Diffstat (limited to 'src/util.cff')
| -rw-r--r-- | src/util.cff | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cff b/src/util.cff index 9bb5db9..926b1e4 100644 --- a/src/util.cff +++ b/src/util.cff @@ -41,6 +41,10 @@ extern fn fnv1a_s(h u32, str *const u8) u32 { return h; } +extern fn fnv1a_i(h u32, x i64) u32 { + return fnv1a(h, (as(*u8)&x)[0::8]); +} + static filepaths [64]*const u8 = {}; static nfilepaths int = 0; |