summaryrefslogtreecommitdiff
path: root/src/util/fnv.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
committeraura <nw@moneybot.cc>2026-02-25 08:58:39 +0100
commit3e5e15a4923c752be703d7afb1214d5e5a767fad (patch)
treed76049a556bd0fff581a018408faa6bed23b74eb /src/util/fnv.h
parent25da8e01a0499c273357cb2feb2825b53e86795b (diff)
finish wall collisions (clipvelocity), some utils
Diffstat (limited to 'src/util/fnv.h')
-rw-r--r--src/util/fnv.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util/fnv.h b/src/util/fnv.h
index 534063d..679bea9 100644
--- a/src/util/fnv.h
+++ b/src/util/fnv.h
@@ -1,4 +1,5 @@
#pragma once
+#include "string.h"
#include "typedef.h"
typedef U32 FNV1A;
@@ -8,13 +9,6 @@ enum : FNV1A {
FNV1A_BASIS = 0x811C9DC5
};
-inline constexpr U32 strlen_ct( const char* str ) {
- U32 s = 0;
- for( ; !!str[s]; ++s );
-
- return s;
-}
-
inline constexpr FNV1A fnv1a( const U8* data, const U32 size ) {
FNV1A out = FNV1A_BASIS;