Using arena as token array, remove arenas idea
This commit is contained in:
2
base.cpp
2
base.cpp
@@ -260,7 +260,7 @@ T clamp(T min, T val, T max){
|
||||
CORE_Static U64
|
||||
hash_string(String string) {
|
||||
U64 hash = (U64)14695981039346656037ULL;
|
||||
for (U64 i = 0; i < string.len; i++) {
|
||||
for (S64 i = 0; i < string.len; i++) {
|
||||
hash = hash ^ (U64)(string.str[i]);
|
||||
hash = hash * (U64)1099511628211ULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user