MCPcopy Create free account
hub / github.com/F-Stack/f-stack / djb_hash

Function djb_hash

freebsd/net/route/nhop.c:198–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196};
197
198static unsigned
199djb_hash(const unsigned char *h, const int len)
200{
201 unsigned int result = 0;
202 int i;
203
204 for (i = 0; i < len; i++)
205 result = 33 * result ^ h[i];
206
207 return (result);
208}
209
210static uint32_t
211hash_priv(const struct nhop_priv *priv)

Callers 1

hash_privFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected