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

Function fnv_32_str

freebsd/sys/fnv_hash.h:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static __inline Fnv32_t
35fnv_32_str(const char *str, Fnv32_t hval)
36{
37 const u_int8_t *s = (const u_int8_t *)str;
38 Fnv32_t c;
39
40 while ((c = *s++) != 0) {
41 hval *= FNV_32_PRIME;
42 hval ^= c;
43 }
44 return hval;
45}
46
47static __inline Fnv64_t
48fnv_64_buf(const void *buf, size_t len, Fnv64_t hval)

Callers 7

objhash_hash_nameFunction · 0.85
ksem_createFunction · 0.85
sys_ksem_unlinkFunction · 0.85
vfs_registerFunction · 0.85
kern_shm_open2Function · 0.85
sys_shm_unlinkFunction · 0.85
sys_shm_renameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected