summaryrefslogtreecommitdiff
path: root/src/util/fnv.h
diff options
context:
space:
mode:
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;