MCPcopy Create free account
hub / github.com/buggins/coolreader / calcStringHash

Function calcStringHash

crengine/src/lvstring.cpp:1081–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079}
1080
1081lUInt32 calcStringHash( const lChar16 * s )
1082{
1083 lUInt32 a = 2166136261u;
1084 while (*s)
1085 {
1086 a = a * 16777619 ^ (*s++);
1087 }
1088 return a;
1089}
1090
1091static const char * str_hash_magic="STRS";
1092

Callers 3

findMethod · 0.85
reHashMethod · 0.85
addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected