atomshashtable.c

Include dependency graph for atomshashtable.c:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "7" [label="stdbool.h" tooltip="stdbool.h"]
    "3" [label="atom.h" tooltip="atom.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "5" [label="stdlib.h" tooltip="stdlib.h"]
    "8" [label="utils.h" tooltip="utils.h"]
    "9" [label="stddef.h" tooltip="stddef.h"]
    "10" [label="string.h" tooltip="string.h"]
    "6" [label="smp.h" tooltip="smp.h"]
    "1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/atomshashtable.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/atomshashtable.c" fillcolor="#BFBFBF"]
    "2" [label="atomshashtable.h" tooltip="atomshashtable.h"]
    "3" -> "4" [dir=forward tooltip="include"]
    "3" -> "5" [dir=forward tooltip="include"]
    "8" -> "9" [dir=forward tooltip="include"]
    "6" -> "7" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "6" [dir=forward tooltip="include"]
    "1" -> "8" [dir=forward tooltip="include"]
    "1" -> "5" [dir=forward tooltip="include"]
    "1" -> "10" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
}

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

Functions

static unsigned long sdbm_hash(const unsigned char *str, int len)
struct AtomsHashTable *atomshashtable_new()
int atomshashtable_insert(struct AtomsHashTable *hash_table, AtomString string, unsigned long value)
unsigned long atomshashtable_get_value(const struct AtomsHashTable *hash_table, const AtomString string, unsigned long default_value)
int atomshashtable_has_key(const struct AtomsHashTable *hash_table, const AtomString string)
struct HNode