Squash commits for public release
This commit is contained in:
11
kernel/include/algo/hash.h
Normal file
11
kernel/include/algo/hash.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef _KERNEL_ALGO_HASH_H
|
||||
#define _KERNEL_ALGO_HASH_H
|
||||
|
||||
#include <libkern/types.h>
|
||||
|
||||
#define hashint(hfunc, val) (hfunc((uint8_t*)&val, sizeof(val)))
|
||||
|
||||
uint32_t hash_crc32(uint8_t* data, size_t len);
|
||||
uint32_t hashstr_crc32(char* data);
|
||||
|
||||
#endif // _KERNEL_ALGO_HASH_H
|
||||
Reference in New Issue
Block a user