bif.c

Include dependency graph for bif.c:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "4" [label="atom.h" tooltip="atom.h"]
    "29" [label="atomshashtable.h" tooltip="atomshashtable.h"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c" fillcolor="#BFBFBF"]
    "2" [label="bif.h" tooltip="bif.h"]
    "7" [label="context.h" tooltip="context.h"]
    "32" [label="defaultatoms.h" tooltip="defaultatoms.h"]
    "33" [label="dictionary.h" tooltip="dictionary.h"]
    "9" [label="erl_nif.h" tooltip="erl_nif.h"]
    "27" [label="exportedfunction.h" tooltip="exportedfunction.h"]
    "8" [label="globalcontext.h" tooltip="globalcontext.h"]
    "13" [label="list.h" tooltip="list.h"]
    "26" [label="mailbox.h" tooltip="mailbox.h"]
    "20" [label="memory.h" tooltip="memory.h"]
    "28" [label="module.h" tooltip="module.h"]
    "34" [label="overflow_helpers.h" tooltip="overflow_helpers.h"]
    "23" [label="refc_binary.h" tooltip="refc_binary.h"]
    "24" [label="resources.h" tooltip="resources.h"]
    "14" [label="smp.h" tooltip="smp.h"]
    "16" [label="synclist.h" tooltip="synclist.h"]
    "18" [label="term.h" tooltip="term.h"]
    "10" [label="term_typedef.h" tooltip="term_typedef.h"]
    "25" [label="timer_list.h" tooltip="timer_list.h"]
    "35" [label="trace.h" tooltip="trace.h"]
    "21" [label="utils.h" tooltip="utils.h"]
    "30" [label="valueshashtable.h" tooltip="valueshashtable.h"]
    "36" [label="bifs_hash.h" tooltip="bifs_hash.h"]
    "12" [label="inttypes.h" tooltip="inttypes.h"]
    "11" [label="limits.h" tooltip="limits.h"]
    "31" [label="math.h" tooltip="math.h"]
    "15" [label="stdatomic.h" tooltip="stdatomic.h"]
    "3" [label="stdbool.h" tooltip="stdbool.h"]
    "22" [label="stddef.h" tooltip="stddef.h"]
    "5" [label="stdint.h" tooltip="stdint.h"]
    "17" [label="stdio.h" tooltip="stdio.h"]
    "6" [label="stdlib.h" tooltip="stdlib.h"]
    "19" [label="string.h" tooltip="string.h"]
    "4" -> "5" [dir=forward tooltip="include"]
    "4" -> "6" [dir=forward tooltip="include"]
    "29" -> "4" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "6" [dir=forward tooltip="include"]
    "1" -> "31" [dir=forward tooltip="include"]
    "1" -> "4" [dir=forward tooltip="include"]
    "1" -> "32" [dir=forward tooltip="include"]
    "1" -> "33" [dir=forward tooltip="include"]
    "1" -> "34" [dir=forward tooltip="include"]
    "1" -> "35" [dir=forward tooltip="include"]
    "1" -> "21" [dir=forward tooltip="include"]
    "1" -> "36" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "4" [dir=forward tooltip="include"]
    "2" -> "7" [dir=forward tooltip="include"]
    "2" -> "27" [dir=forward tooltip="include"]
    "2" -> "28" [dir=forward tooltip="include"]
    "7" -> "8" [dir=forward tooltip="include"]
    "7" -> "13" [dir=forward tooltip="include"]
    "7" -> "26" [dir=forward tooltip="include"]
    "7" -> "14" [dir=forward tooltip="include"]
    "7" -> "18" [dir=forward tooltip="include"]
    "7" -> "25" [dir=forward tooltip="include"]
    "32" -> "8" [dir=forward tooltip="include"]
    "33" -> "13" [dir=forward tooltip="include"]
    "33" -> "18" [dir=forward tooltip="include"]
    "9" -> "10" [dir=forward tooltip="include"]
    "27" -> "18" [dir=forward tooltip="include"]
    "8" -> "5" [dir=forward tooltip="include"]
    "8" -> "4" [dir=forward tooltip="include"]
    "8" -> "9" [dir=forward tooltip="include"]
    "8" -> "13" [dir=forward tooltip="include"]
    "8" -> "14" [dir=forward tooltip="include"]
    "8" -> "16" [dir=forward tooltip="include"]
    "8" -> "18" [dir=forward tooltip="include"]
    "8" -> "25" [dir=forward tooltip="include"]
    "26" -> "3" [dir=forward tooltip="include"]
    "26" -> "13" [dir=forward tooltip="include"]
    "26" -> "14" [dir=forward tooltip="include"]
    "26" -> "10" [dir=forward tooltip="include"]
    "26" -> "21" [dir=forward tooltip="include"]
    "20" -> "9" [dir=forward tooltip="include"]
    "20" -> "10" [dir=forward tooltip="include"]
    "20" -> "21" [dir=forward tooltip="include"]
    "20" -> "5" [dir=forward tooltip="include"]
    "20" -> "6" [dir=forward tooltip="include"]
    "28" -> "3" [dir=forward tooltip="include"]
    "28" -> "5" [dir=forward tooltip="include"]
    "28" -> "4" [dir=forward tooltip="include"]
    "28" -> "29" [dir=forward tooltip="include"]
    "28" -> "7" [dir=forward tooltip="include"]
    "28" -> "27" [dir=forward tooltip="include"]
    "28" -> "8" [dir=forward tooltip="include"]
    "28" -> "18" [dir=forward tooltip="include"]
    "28" -> "30" [dir=forward tooltip="include"]
    "34" -> "18" [dir=forward tooltip="include"]
    "34" -> "5" [dir=forward tooltip="include"]
    "23" -> "3" [dir=forward tooltip="include"]
    "23" -> "6" [dir=forward tooltip="include"]
    "23" -> "13" [dir=forward tooltip="include"]
    "23" -> "24" [dir=forward tooltip="include"]
    "23" -> "14" [dir=forward tooltip="include"]
    "24" -> "6" [dir=forward tooltip="include"]
    "24" -> "9" [dir=forward tooltip="include"]
    "24" -> "13" [dir=forward tooltip="include"]
    "14" -> "3" [dir=forward tooltip="include"]
    "14" -> "15" [dir=forward tooltip="include"]
    "16" -> "13" [dir=forward tooltip="include"]
    "16" -> "17" [dir=forward tooltip="include"]
    "16" -> "14" [dir=forward tooltip="include"]
    "18" -> "3" [dir=forward tooltip="include"]
    "18" -> "5" [dir=forward tooltip="include"]
    "18" -> "17" [dir=forward tooltip="include"]
    "18" -> "6" [dir=forward tooltip="include"]
    "18" -> "19" [dir=forward tooltip="include"]
    "18" -> "20" [dir=forward tooltip="include"]
    "18" -> "23" [dir=forward tooltip="include"]
    "18" -> "21" [dir=forward tooltip="include"]
    "18" -> "10" [dir=forward tooltip="include"]
    "10" -> "11" [dir=forward tooltip="include"]
    "10" -> "12" [dir=forward tooltip="include"]
    "10" -> "5" [dir=forward tooltip="include"]
    "25" -> "3" [dir=forward tooltip="include"]
    "25" -> "5" [dir=forward tooltip="include"]
    "25" -> "13" [dir=forward tooltip="include"]
    "21" -> "22" [dir=forward tooltip="include"]
}

Defines

RAISE_ERROR(error_type_atom)
VALIDATE_VALUE(value, verify_function)
INT64_MIN_AS_FLOAT
INT64_MAX_AS_FLOAT

Typedefs

typedef int64_t (*bitwise_op)(int64_t a, int64_t b)
typedef int64_t (*bitshift_op)(int64_t a, avm_int_t b)

Functions

const struct ExportedFunction *bif_registry_get_handler(AtomString module, AtomString function, int arity)
term bif_erlang_self_0(Context *ctx)
term bif_erlang_byte_size_1(Context *ctx, int live, term arg1)
term bif_erlang_bit_size_1(Context *ctx, int live, term arg1)
term bif_erlang_is_atom_1(Context *ctx, term arg1)
term bif_erlang_is_binary_1(Context *ctx, term arg1)
term bif_erlang_is_boolean_1(Context *ctx, term arg1)
term bif_erlang_is_float_1(Context *ctx, term arg1)
term bif_erlang_is_function_1(Context *ctx, term arg1)
term bif_erlang_is_integer_1(Context *ctx, term arg1)
term bif_erlang_is_list_1(Context *ctx, term arg1)
term bif_erlang_is_number_1(Context *ctx, term arg1)
term bif_erlang_is_pid_1(Context *ctx, term arg1)
term bif_erlang_is_reference_1(Context *ctx, term arg1)
term bif_erlang_is_tuple_1(Context *ctx, term arg1)
term bif_erlang_is_map_1(Context *ctx, term arg1)
term bif_erlang_is_map_key_2(Context *ctx, term arg1, term arg2)
term bif_erlang_length_1(Context *ctx, int live, term arg1)
term bif_erlang_hd_1(Context *ctx, term arg1)
term bif_erlang_tl_1(Context *ctx, term arg1)
term bif_erlang_element_2(Context *ctx, term arg1, term arg2)
term bif_erlang_tuple_size_1(Context *ctx, term arg1)
term bif_erlang_map_size_1(Context *ctx, int live, term arg1)
term bif_erlang_map_get_2(Context *ctx, term arg1, term arg2)
static inline term make_boxed_int(Context *ctx, avm_int_t value)
static inline term make_boxed_int64(Context *ctx, avm_int64_t value)
static inline term make_maybe_boxed_int(Context *ctx, avm_int_t value)
static inline term make_maybe_boxed_int64(Context *ctx, avm_int64_t value)
static term add_overflow_helper(Context *ctx, term arg1, term arg2)
static term add_boxed_helper(Context *ctx, term arg1, term arg2)
term bif_erlang_add_2(Context *ctx, int live, term arg1, term arg2)
static term sub_overflow_helper(Context *ctx, term arg1, term arg2)
static term sub_boxed_helper(Context *ctx, term arg1, term arg2)
term bif_erlang_sub_2(Context *ctx, int live, term arg1, term arg2)
static term mul_overflow_helper(Context *ctx, term arg1, term arg2)
static term mul_boxed_helper(Context *ctx, term arg1, term arg2)
term bif_erlang_mul_2(Context *ctx, int live, term arg1, term arg2)
static term div_boxed_helper(Context *ctx, term arg1, term arg2)
term bif_erlang_div_2(Context *ctx, int live, term arg1, term arg2)
static term neg_boxed_helper(Context *ctx, term arg1)
term bif_erlang_neg_1(Context *ctx, int live, term arg1)
static term abs_boxed_helper(Context *ctx, term arg1)
term bif_erlang_abs_1(Context *ctx, int live, term arg1)
static term rem_boxed_helper(Context *ctx, term arg1, term arg2)
term bif_erlang_rem_2(Context *ctx, int live, term arg1, term arg2)
term bif_erlang_ceil_1(Context *ctx, int live, term arg1)
term bif_erlang_floor_1(Context *ctx, int live, term arg1)
term bif_erlang_round_1(Context *ctx, int live, term arg1)
term bif_erlang_trunc_1(Context *ctx, int live, term arg1)
static inline term bitwise_helper(Context *ctx, int live, term arg1, term arg2, bitwise_op op)
static inline int64_t bor(int64_t a, int64_t b)
term bif_erlang_bor_2(Context *ctx, int live, term arg1, term arg2)
static inline int64_t band(int64_t a, int64_t b)
term bif_erlang_band_2(Context *ctx, int live, term arg1, term arg2)
static inline int64_t bxor(int64_t a, int64_t b)
term bif_erlang_bxor_2(Context *ctx, int live, term arg1, term arg2)
static inline term bitshift_helper(Context *ctx, int live, term arg1, term arg2, bitshift_op op)
static inline int64_t bsl(int64_t a, avm_int_t b)
term bif_erlang_bsl_2(Context *ctx, int live, term arg1, term arg2)
static inline int64_t bsr(int64_t a, avm_int_t b)
term bif_erlang_bsr_2(Context *ctx, int live, term arg1, term arg2)
term bif_erlang_bnot_1(Context *ctx, int live, term arg1)
term bif_erlang_not_1(Context *ctx, term arg1)
term bif_erlang_and_2(Context *ctx, term arg1, term arg2)
term bif_erlang_or_2(Context *ctx, term arg1, term arg2)
term bif_erlang_xor_2(Context *ctx, term arg1, term arg2)
term bif_erlang_equal_to_2(Context *ctx, term arg1, term arg2)
term bif_erlang_not_equal_to_2(Context *ctx, term arg1, term arg2)
term bif_erlang_exactly_equal_to_2(Context *ctx, term arg1, term arg2)
term bif_erlang_exactly_not_equal_to_2(Context *ctx, term arg1, term arg2)
term bif_erlang_greater_than_2(Context *ctx, term arg1, term arg2)
term bif_erlang_less_than_2(Context *ctx, term arg1, term arg2)
term bif_erlang_less_than_or_equal_2(Context *ctx, term arg1, term arg2)
term bif_erlang_greater_than_or_equal_2(Context *ctx, term arg1, term arg2)
term bif_erlang_get_1(Context *ctx, term arg1)
term bif_erlang_min_2(Context *ctx, term arg1, term arg2)
term bif_erlang_max_2(Context *ctx, term arg1, term arg2)