llm
Download

srcstdlib

NameModifiedLinesSize
datatypes/ 407 lines2% of this folder's lines 10.9 KiB1% of this folder's bytes
README.md 64 lines<1% of this folder's lines 3.9 KiB<1% of this folder's bytes
bigint.c 646 lines3% of this folder's lines 21 KiB2% of this folder's bytes
bigint.h 211 lines<1% of this folder's lines 7.9 KiB<1% of this folder's bytes
bool.c 104 lines<1% of this folder's lines 3.9 KiB<1% of this folder's bytes
bool.h 37 lines<1% of this folder's lines 862 B<1% of this folder's bytes
byte.c 156 lines<1% of this folder's lines 5.2 KiB<1% of this folder's bytes
byte.h 42 lines<1% of this folder's lines 1.2 KiB<1% of this folder's bytes
c_string.c 107 lines<1% of this folder's lines 3.4 KiB<1% of this folder's bytes
c_string.h 21 lines<1% of this folder's lines 901 B<1% of this folder's bytes
cli.c 919 lines4% of this folder's lines 44 KiB5% of this folder's bytes
cli.h 117 lines<1% of this folder's lines 5.7 KiB<1% of this folder's bytes
datatypes.h 28 lines<1% of this folder's lines 1.4 KiB<1% of this folder's bytes
debugger.c 35 lines<1% of this folder's lines 1.5 KiB<1% of this folder's bytes
debugger.h 24 lines<1% of this folder's lines 1 KiB<1% of this folder's bytes
enums.c 103 lines<1% of this folder's lines 3.3 KiB<1% of this folder's bytes
enums.h 39 lines<1% of this folder's lines 2.8 KiB<1% of this folder's bytes
fail.c 57 lines<1% of this folder's lines 1.9 KiB<1% of this folder's bytes
fail.h 13 lines<1% of this folder's lines 289 B<1% of this folder's bytes
files.c 329 lines1% of this folder's lines 11.8 KiB1% of this folder's bytes
files.h 34 lines<1% of this folder's lines 1.6 KiB<1% of this folder's bytes
float32.c 4 lines<1% of this folder's lines 135 B<1% of this folder's bytes
float32.h 3 lines<1% of this folder's lines 97 B<1% of this folder's bytes
float64.c 4 lines<1% of this folder's lines 135 B<1% of this folder's bytes
float64.h 3 lines<1% of this folder's lines 98 B<1% of this folder's bytes
floatX.c.h 276 lines1% of this folder's lines 8.3 KiB<1% of this folder's bytes
floatX.h 90 lines<1% of this folder's lines 2.9 KiB<1% of this folder's bytes
floats.h 9 lines<1% of this folder's lines 309 B<1% of this folder's bytes
fpconv.c 337 lines2% of this folder's lines 7.7 KiB<1% of this folder's bytes
fpconv.h 36 lines<1% of this folder's lines 887 B<1% of this folder's bytes
fpconv_license.txt 24 lines<1% of this folder's lines 1.3 KiB<1% of this folder's bytes
functiontype.c 23 lines<1% of this folder's lines 595 B<1% of this folder's bytes
functiontype.h 37 lines<1% of this folder's lines 2.5 KiB<1% of this folder's bytes
int16.c 3 lines<1% of this folder's lines 76 B<1% of this folder's bytes
int16.h 3 lines<1% of this folder's lines 97 B<1% of this folder's bytes
int32.c 3 lines<1% of this folder's lines 76 B<1% of this folder's bytes
int32.h 3 lines<1% of this folder's lines 97 B<1% of this folder's bytes
int64.c 11 lines<1% of this folder's lines 278 B<1% of this folder's bytes
int64.h 35 lines<1% of this folder's lines 1.2 KiB<1% of this folder's bytes
int8.c 3 lines<1% of this folder's lines 75 B<1% of this folder's bytes
int8.h 3 lines<1% of this folder's lines 94 B<1% of this folder's bytes
intX.c.h 347 lines2% of this folder's lines 10.2 KiB1% of this folder's bytes
intX.h 144 lines<1% of this folder's lines 4.5 KiB<1% of this folder's bytes
integers.h 13 lines<1% of this folder's lines 263 B<1% of this folder's bytes
list.c 865 lines4% of this folder's lines 36.4 KiB4% of this folder's bytes
list.h 383 lines2% of this folder's lines 35.5 KiB4% of this folder's bytes
mapmacro.h 27 lines<1% of this folder's lines 1009 B<1% of this folder's bytes
memory.c 33 lines<1% of this folder's lines 802 B<1% of this folder's bytes
memory.h 11 lines<1% of this folder's lines 254 B<1% of this folder's bytes
metamethods.c 158 lines<1% of this folder's lines 5.8 KiB<1% of this folder's bytes
metamethods.h 25 lines<1% of this folder's lines 1.2 KiB<1% of this folder's bytes
num.c 448 lines2% of this folder's lines 18.4 KiB2% of this folder's bytes
num.h 177 lines<1% of this folder's lines 7.3 KiB<1% of this folder's bytes
number-design.md 328 lines1% of this folder's lines 18.1 KiB2% of this folder's bytes
number.c 5.2K lines23% of this folder's lines 205 KiB22% of this folder's bytes
number.h 560 lines3% of this folder's lines 29.7 KiB3% of this folder's bytes
optionals.c 86 lines<1% of this folder's lines 3.4 KiB<1% of this folder's bytes
optionals.h 35 lines<1% of this folder's lines 2.4 KiB<1% of this folder's bytes
path.c 1.5K lines7% of this folder's lines 53.5 KiB6% of this folder's bytes
path.h 89 lines<1% of this folder's lines 4.4 KiB<1% of this folder's bytes
pointers.c 125 lines<1% of this folder's lines 4.5 KiB<1% of this folder's bytes
pointers.h 41 lines<1% of this folder's lines 2.9 KiB<1% of this folder's bytes
powers.h 73 lines<1% of this folder's lines 3.7 KiB<1% of this folder's bytes
print.c 265 lines1% of this folder's lines 7.8 KiB<1% of this folder's bytes
print.h 169 lines<1% of this folder's lines 8.5 KiB<1% of this folder's bytes
profiling.c 625 lines3% of this folder's lines 26.2 KiB3% of this folder's bytes
profiling.h 173 lines<1% of this folder's lines 9.5 KiB1% of this folder's bytes
random.h 34 lines<1% of this folder's lines 1.1 KiB<1% of this folder's bytes
report.c 95 lines<1% of this folder's lines 2.4 KiB<1% of this folder's bytes
report.h 34 lines<1% of this folder's lines 1.5 KiB<1% of this folder's bytes
result.c 65 lines<1% of this folder's lines 1.5 KiB<1% of this folder's bytes
result.h 17 lines<1% of this folder's lines 643 B<1% of this folder's bytes
simpleparse.c 130 lines<1% of this folder's lines 5.1 KiB<1% of this folder's bytes
simpleparse.h 62 lines<1% of this folder's lines 3.5 KiB<1% of this folder's bytes
siphash-internals.h 125 lines<1% of this folder's lines 5 KiB<1% of this folder's bytes
siphash.c 81 lines<1% of this folder's lines 2.9 KiB<1% of this folder's bytes
siphash.h 13 lines<1% of this folder's lines 281 B<1% of this folder's bytes
stacktrace.c 213 lines<1% of this folder's lines 8.4 KiB<1% of this folder's bytes
stacktrace.h 7 lines<1% of this folder's lines 161 B<1% of this folder's bytes
stdlib.c 391 lines2% of this folder's lines 12.5 KiB1% of this folder's bytes
stdlib.h 49 lines<1% of this folder's lines 2.5 KiB<1% of this folder's bytes
structs.c 232 lines1% of this folder's lines 9.4 KiB1% of this folder's bytes
structs.h 38 lines<1% of this folder's lines 2.7 KiB<1% of this folder's bytes
table.c 765 lines3% of this folder's lines 29.1 KiB3% of this folder's bytes
table.h 164 lines<1% of this folder's lines 13.7 KiB2% of this folder's bytes
test_harness.c 535 lines2% of this folder's lines 22 KiB2% of this folder's bytes
test_harness.h 73 lines<1% of this folder's lines 3.5 KiB<1% of this folder's bytes
text.c 2K lines9% of this folder's lines 79.1 KiB9% of this folder's bytes
text.h 172 lines<1% of this folder's lines 10.1 KiB1% of this folder's bytes
tomo-gdb.py 643 lines3% of this folder's lines 26.3 KiB3% of this folder's bytes
tomo.h 39 lines<1% of this folder's lines 1.5 KiB<1% of this folder's bytes
typeinfo.c 21 lines<1% of this folder's lines 660 B<1% of this folder's bytes
typeinfo.h 20 lines<1% of this folder's lines 1.2 KiB<1% of this folder's bytes
util.h 76 lines<1% of this folder's lines 3.1 KiB<1% of this folder's bytes

README.md

Tomo Standard Library

This directory contains all of the standard library functionality that is built into each Tomo program. It has all the logic for core datastructures as well as some common functionality.

Each datatype comes as a pair of headers: datatypes/<type>.h gives its memory layout and nothing else, while <type>.h beside it declares the functions that operate on it. The layout headers declare no functions, which is what keeps them clear of the cycle between the datatypes and the TypeInfo_t that describes them. datatypes.h is an umbrella over all of the layouts, and tomo.h is an umbrella over everything.

Core Functions

Core Data Types

Shared Behavior

These cover a whole class of types rather than one type, which is why they stay plural:

Other