Using arena as token array, remove arenas idea

This commit is contained in:
Krzosa Karol
2023-02-09 12:36:36 +01:00
parent 5138ba0097
commit 7370e8b716
16 changed files with 295 additions and 407 deletions

View File

@@ -632,6 +632,10 @@ bool mul_u64_overflow(uint64_t op1, uint64_t op2, uint64_t *result)
#endif
// @! Big int: Maybe look into those bool operations?
#pragma warning( push )
#pragma warning( disable : 4804 )
void bigint_add(BigInt *dest, const BigInt *op1, const BigInt *op2)
{
assert(dest != op1);
@@ -772,6 +776,8 @@ void bigint_add(BigInt *dest, const BigInt *op1, const BigInt *op2)
dest->digit_count = i;
normalize(dest);
}
#pragma warning( pop )
void bigint_add_wrap(BigInt *dest, const BigInt *op1, const BigInt *op2, size_t bit_count, bool is_signed)
{