22 h[j] = ((h[j] << 7) | (h[j-1] >> 1)) + h[j];
26 h[0] = (h[0] << 7) + h[0] + *s++;
void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h)
Calculates a fast hash over the given string s of length len and stores the result into h...
unsigned char coap_key_t[4]
definition of hash key type and helper functions