diff options
| author | lukem <lukem@NetBSD.org> | 2001-12-05 06:51:55 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2001-12-05 06:51:55 +0000 |
| commit | e35019c17b6d1f3fffcc6d05e413ea5783ab5402 (patch) | |
| tree | 8bb681f513153a5cc7d078e883df90c75a7bf103 /sys/dev/microcode | |
| parent | 7919399e4af5c2e1d069580f382a01d46765b8a6 (diff) | |
Add <sys/hash.h>, which currently implements three inline functions:
uint32_t hash32_buf(const void *buf, size_t len, uint32_t ihash)
return 32 bit hash of buf, size len,
seeded with initial hash of ihash (usually HASH32_BUF_INIT).
this hash may use a different algorithm to hash32_str() and
hash32_strn().
uint32_t hash32_str(const void *buf, uint32_t ihash)
return 32 bit hash of buf, which is an NUL terminated ascii string,
seeded with initial hash of ihash (usually HASH32_STR_INIT).
this hash may use a different algorithm to hash32_buf()
but must use the same algorithm as hash32_strn().
uint32_t hash32_strn(const void *buf, size_t len, uint32_t ihash)
return 32 bit hash of buf, which is an NUL terminated ascii string
up to a maximum of len bytes,
seeded with initial hash of ihash (usually HASH32_STR_INIT).
this hash may use a different algorithm to hash32_buf()
but must use the same algorithm as hash32_str().
As discussed on tech-kern@netbsd.org.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions
