MCPcopy Create free account
hub / github.com/SoarGroup/Soar / hash_string

Function hash_string

Core/SoarKernel/src/symtab.cpp:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79uint32_t hash_string(const char* s) /* AGR 600 */
80{
81 uint32_t h;
82
83 h = 0;
84 while (*s != 0)
85 {
86 h = ((h << 8) | (h >> 24)) ^ (*s);
87 s++;
88 }
89 return h;
90}
91
92/* -----------------------------------------
93 Hashing symbols using their basic info

Callers 4

hash_variable_raw_infoFunction · 0.85
hash_variableFunction · 0.85
hash_str_constantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected