mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
hashset.hpp
This commit is contained in:
parent
a1bed8f56e
commit
9854d99432
1 changed files with 9 additions and 8 deletions
|
|
@ -22,14 +22,6 @@
|
|||
#include "wyhash.h"
|
||||
#include <cstdint>
|
||||
|
||||
#define NAME str_set
|
||||
#define KEY_TY const char*
|
||||
#define HASH_FN vt_hash_const_string
|
||||
#define CMPR_FN vt_cmpr_const_string
|
||||
#include "verstable.h"
|
||||
|
||||
KHASH_SET_INIT_INT64(hashset);
|
||||
|
||||
static
|
||||
inline
|
||||
uint64_t
|
||||
|
|
@ -52,6 +44,15 @@ vt_cmpr_const_string(const char *key_1,
|
|||
return (strcmp(key_1,key_2) == 0);
|
||||
}
|
||||
|
||||
#define NAME str_set
|
||||
#define KEY_TY const char*
|
||||
#define HASH_FN vt_hash_const_string
|
||||
#define CMPR_FN vt_cmpr_const_string
|
||||
#include "verstable.h"
|
||||
|
||||
KHASH_SET_INIT_INT64(hashset);
|
||||
|
||||
|
||||
class HashSet
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue