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"]
    "8" [label="stdatomic.h" tooltip="stdatomic.h"]
    "3" [label="atom.h" tooltip="atom.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "5" [label="stdlib.h" tooltip="stdlib.h"]
    "9" [label="utils.h" tooltip="utils.h"]
    "10" [label="stddef.h" tooltip="stddef.h"]
    "11" [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"]
    "9" -> "10" [dir=forward tooltip="include"]
    "6" -> "7" [dir=forward tooltip="include"]
    "6" -> "8" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "6" [dir=forward tooltip="include"]
    "1" -> "9" [dir=forward tooltip="include"]
    "1" -> "5" [dir=forward tooltip="include"]
    "1" -> "11" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
}

Defines

SMP_RDLOCK(htable)
SMP_WRLOCK(htable)
SMP_UNLOCK(htable)
DEFAULT_SIZE

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