From a4ddca68662f4bc0531763357b4bc00b6c50b456 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 13 Aug 2022 13:00:37 +0200 Subject: target --- src/util.cff | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util.cff') 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; -- cgit v1.2.3