- introduce bitset
- add hash_block()
This commit is contained in:
parent
2cf636e607
commit
48ea4a0205
8 changed files with 607 additions and 6 deletions
17
src/include/bitset.h
Normal file
17
src/include/bitset.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#if !defined(_BITSET_H_)
|
||||
|
||||
#define _BITSET_H_ 1
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <rtti.h>
|
||||
|
||||
/* iter over clear bits */
|
||||
#define BITSET_ITER_OVER_0 (0)
|
||||
|
||||
/* iter over set bits */
|
||||
#define BITSET_ITER_OVER_1 (1)
|
||||
|
||||
extern typeinfo_t bitset_type;
|
||||
|
||||
#endif
|
||||
|
|
@ -134,5 +134,6 @@ extern void block_sig(int);
|
|||
extern uint32_t hash4(uint32_t, uint32_t, uint32_t, uint32_t);
|
||||
extern uint32_t hash64(uint64_t);
|
||||
extern uint32_t hash_string(const char*);
|
||||
extern uint32_t hash_block(char*, size_t);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue