MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetStringHash

Function GetStringHash

NULLC/translation/runtime.cpp:792–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792unsigned int GetStringHash(const char *str)
793{
794 unsigned int hash = 5381;
795 int c;
796 while((c = *str++) != 0)
797 hash = ((hash << 5) + hash) + c;
798 return hash;
799}
800
801unsigned __nullcRegisterFunction(const char* name, void* fPtr, unsigned extraType, unsigned funcType)
802{

Callers 2

__nullcRegisterFunctionFunction · 0.70
runtime.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected