Lines Matching refs:str
41 typedef uint32_t (*sys_hash_func32_t)(const void *str, size_t n);
58 static inline uint32_t sys_hash32_identity(const void *str, size_t n) in sys_hash32_identity() argument
62 return *(uint8_t *)str; in sys_hash32_identity()
64 return *(uint16_t *)str; in sys_hash32_identity()
66 return *(uint32_t *)str; in sys_hash32_identity()
68 return (uint32_t)(*(uint64_t *)str); in sys_hash32_identity()
95 uint32_t sys_hash32_djb2(const void *str, size_t n);
109 uint32_t sys_hash32_murmur3(const void *str, size_t n);
119 static inline uint32_t sys_hash32(const void *str, size_t n) in sys_hash32() argument
122 return sys_hash32_identity(str, n); in sys_hash32()
126 return sys_hash32_djb2(str, n); in sys_hash32()
130 return sys_hash32_murmur3(str, n); in sys_hash32()