Hide away tt_hash_node again
This commit is contained in:
parent
316fd0adda
commit
7cede97080
|
@ -8,6 +8,8 @@
|
|||
#include "treetrie.h"
|
||||
#include "fasthash.h"
|
||||
|
||||
typedef uint32_t tt_hash_t;
|
||||
|
||||
/* /\* Customized special-purpose fasthash variation *\/ */
|
||||
/* #define mix(h) ({ \ */
|
||||
/* (h) ^= (h) >> 23; \ */
|
||||
|
@ -54,7 +56,7 @@ static inline tt_hash_t hash(uint32_t tag,
|
|||
return x - (x >> 32);
|
||||
}
|
||||
|
||||
inline tt_hash_t tt_hash_node(tt_arena_t *a, tt_node_idx_t i) {
|
||||
static inline tt_hash_t tt_hash_node(tt_arena_t *a, tt_node_idx_t i) {
|
||||
return hash(a->headers[i].inuse.tag,
|
||||
a->headers[i].inuse.index,
|
||||
a->nodes[i].a,
|
||||
|
|
|
@ -79,10 +79,6 @@ extern tt_node_idx_t tt_arena_cons(tt_arena_t *a,
|
|||
extern tt_node_idx_t tt_grab(tt_arena_t *a, tt_node_idx_t i);
|
||||
extern void tt_drop(tt_arena_t *a, tt_node_idx_t i);
|
||||
|
||||
/* WARNING: private, unsafe */
|
||||
typedef uint32_t tt_hash_t;
|
||||
extern tt_hash_t tt_hash_node(tt_arena_t *a, tt_node_idx_t i);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue