MCPcopy Create free account
hub / github.com/cppla/ServerStatus / str_quickhash

Function str_quickhash

server/src/system.c:1990–1996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1988
1989
1990unsigned str_quickhash(const char *str)
1991{
1992 unsigned hash = 5381;
1993 for(; *str; str++)
1994 hash = ((hash << 5) + hash) + (*str); /* hash * 33 + c */
1995 return hash;
1996}
1997
1998
1999#if defined(__cplusplus)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected