Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/hash.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | hash32_strne(const void *buf, size_t len, int end, const char **ep, | ||||
if (ep) | if (ep) | ||||
*ep = p; | *ep = p; | ||||
return hash; | return hash; | ||||
} | } | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* Hashing function from Bob Jenkins. Implementation in libkern/jenkins_hash.c. | * Hashing function from Bob Jenkins. Implementation in libkern/jenkins_hash.c. | ||||
*/ | */ | ||||
uint32_t jenkins_hash(const void *, size_t, uint32_t); | uint32_t jenkins_hash(const void *, size_t, uint32_t); | ||||
uint32_t jenkins_hash32(const uint32_t *, size_t, uint32_t); | uint32_t jenkins_hash32(const uint32_t *, size_t, uint32_t); | ||||
emaste: drop the extra whitespace | |||||
uint32_t murmur3_aligned_32(const void *data, size_t len, uint32_t seed); | |||||
Not Done Inline ActionsThe comment should note that this is intended for aligned data in multiples of four bytes, and / or we should have separate aligned and unaligned versions of the code. des: The comment should note that this is intended for aligned data in multiples of four bytes, and… | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_HASH_H_ */ | #endif /* !_SYS_HASH_H_ */ |
drop the extra whitespace