aboutsummaryrefslogtreecommitdiff
path: root/src/util.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cff')
-rw-r--r--src/util.cff4
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;