MCPcopy Create free account
hub / github.com/Entware/Entware / strhash

Function strhash

scripts/config/symbol.c:775–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775static unsigned strhash(const char *s)
776{
777 /* fnv32 hash */
778 unsigned hash = 2166136261U;
779 for (; *s; s++)
780 hash = (hash ^ *s) * 0x01000193;
781 return hash;
782}
783
784struct symbol *sym_lookup(const char *name, int flags)
785{

Callers 2

sym_lookupFunction · 0.85
sym_findFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected