Hide away tt_hash_node again

This commit is contained in:
Tony Garnock-Jones 2015-06-30 10:30:20 -04:00
parent 316fd0adda
commit 7cede97080
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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