atom_table.c
Include dependency graph for atom_table.c:
Defines
-
SMP_RDLOCK(htable) smp_rwlock_rdlock(htable->lock)
-
SMP_WRLOCK(htable) smp_rwlock_wrlock(htable->lock)
-
SMP_UNLOCK(htable) smp_rwlock_unlock(htable->lock)
-
DEFAULT_SIZE 8
-
CAPACITY_INCREASE 8
-
ATOM_TABLE_THRESHOLD(capacity) (capacity + (capacity >> 2))
-
ATOM_TABLE_NEW_CAPACITY(new_count) (new_count + CAPACITY_INCREASE)
Functions
-
static struct HNodeGroup *new_node_group(struct AtomTable *table, int len)
-
static unsigned long sdbm_hash(const unsigned char *str, int len)
-
static inline struct HNode *get_node_from_bucket(const struct AtomTable *hash_table, unsigned long bucket_index, AtomString string)
-
static inline struct HNode *get_node_with_hash(const struct AtomTable *hash_table, AtomString string, unsigned long hash)
-
int atom_table_cmp_using_atom_index(struct AtomTable *table, int t_atom_index, int other_atom_index)
-
void atom_table_write_bytes(struct AtomTable *table, atom_ref_t atom, size_t buf_len, void *outbuf)
-
void atom_table_write_cstring(struct AtomTable *table, atom_ref_t atom, size_t buf_len, char *outbuf)
-
static inline void insert_node_into_bucket(struct AtomTable *table, int bucket_index, struct HNode *node)
-
static inline long insert_node(struct AtomTable *table, struct HNodeGroup *node_group, unsigned long bucket_index, AtomString string)
-
struct HNode
Collaboration diagram for HNode:
-
struct HNodeGroup
Collaboration diagram for HNodeGroup: