Misc update

This commit is contained in:
Krzosa Karol
2024-04-14 13:19:57 +02:00
parent a1324df7e4
commit acf91b6594
4 changed files with 13 additions and 21 deletions

View File

@@ -1,10 +1,3 @@
/*
The bigint code was written by Christoffer Lerno, he is the programmer
behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
#ifndef malloc_arena
#define malloc_arena(size) LC_PushSize(L->arena, size)
#endif

View File

@@ -1360,9 +1360,12 @@ LC_FUNCTION const char *LC_DeclKindToString(LC_DeclKind decl_kind);
LC_FUNCTION const char *LC_TokenKindToString(LC_TokenKind token_kind);
LC_FUNCTION const char *LC_TokenKindToOperator(LC_TokenKind token_kind);
//
// bigint functions
//
/*
The bigint code was written by Christoffer Lerno, he is the programmer
behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
LC_FUNCTION LC_BigInt LC_Bigint_u64(uint64_t val);
LC_FUNCTION uint64_t *LC_Bigint_ptr(LC_BigInt *big_int);
LC_FUNCTION size_t LC_Bigint_bits_needed(LC_BigInt *big_int);