MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / hash

Function hash

src/gpre/hsh.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229//
230
231static int hash(const SCHAR* string)
232{
233 SCHAR c;
234
235 SLONG value = 0;
236
237 while (c = *string++)
238 value = (value << 1) + UPPER(c);
239
240 return ((value >= 0) ? value : -value) % HASH_SIZE;
241}
242
243
244//____________________________________________________________

Callers 15

HSH_insertFunction · 0.70
HSH_lookupFunction · 0.70
HSH_lookup2Function · 0.70
HSH_removeFunction · 0.70
hashMethod · 0.50
authenticateMethod · 0.50
find_lockMethod · 0.50
getEntryByHashMethod · 0.50
resizeMethod · 0.50
findMethod · 0.50
emplaceMethod · 0.50
removeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected