MCPcopy Create free account
hub / github.com/DentonW/DevIL / XpmHash

Function XpmHash

DevIL/src-IL/src/il_xpm.cpp:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162static ILuint XpmHash(const ILubyte* name, int len)
163{
164 ILint i, sum;
165 for (sum = i = 0; i < len; ++i)
166 sum += name[i];
167 return sum % XPM_HASH_LEN;
168}
169
170
171XPMHASHENTRY** XpmCreateHashTable()

Callers 2

XpmInsertEntryFunction · 0.85
XpmGetEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected