MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xStrHash

Function xStrHash

src/SB/Core/x/xString.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <types.h>
6
7U32 xStrHash(const char* str)
8{
9 U32 hash = 0;
10 U32 i;
11
12 while (i = *str, i != NULL)
13 {
14 hash = (i - (i & (S32)i >> 1 & 0x20) & 0xff) + hash * 0x83;
15 str++;
16 }
17
18 return hash;
19}
20
21U32 xStrHash(const char* str, size_t size)
22{

Callers 15

xClimateInitFunction · 0.70
xEntBoulder_InitFunction · 0.70
xEntBoulder_BubbleBowlFunction · 0.70
xEntBoulder_ResetFunction · 0.70
xShadowSimple_InitFunction · 0.70
xScrFx.cppFile · 0.70
xScrFXGlareAddFunction · 0.70
zEntEventFunction · 0.70
typeMethod · 0.70
typeMethod · 0.70
xFX_SceneEnterFunction · 0.70
xFXStreakStartFunction · 0.70

Calls

no outgoing calls

Tested by 1

ZNPC_Test_StartupFunction · 0.40