CORE_Static
This commit is contained in:
@@ -10,35 +10,35 @@ struct BigInt_Arena{
|
||||
~BigInt_Arena(){bigint_allocator = old;}
|
||||
};
|
||||
|
||||
function BigInt
|
||||
CORE_Static BigInt
|
||||
bigint_u64(U64 value){
|
||||
BigInt result;
|
||||
bigint_init_unsigned(&result, value);
|
||||
return result;
|
||||
}
|
||||
|
||||
function BigInt
|
||||
CORE_Static BigInt
|
||||
bigint_s64(S64 value){
|
||||
BigInt result;
|
||||
bigint_init_signed(&result, value);
|
||||
return result;
|
||||
}
|
||||
|
||||
function BigInt
|
||||
CORE_Static BigInt
|
||||
bigint_mul(const BigInt *a, const BigInt *b){
|
||||
BigInt result;
|
||||
bigint_mul(&result, a, b);
|
||||
return result;
|
||||
}
|
||||
|
||||
function BigInt
|
||||
CORE_Static BigInt
|
||||
bigint_add(const BigInt *a, const BigInt *b){
|
||||
BigInt result;
|
||||
bigint_add(&result, a, b);
|
||||
return result;
|
||||
}
|
||||
|
||||
function BigInt
|
||||
CORE_Static BigInt
|
||||
bigint_copy(Arena *allocator, BigInt *src){
|
||||
BigInt dest = {};
|
||||
if (src->digit_count == 0){
|
||||
|
||||
Reference in New Issue
Block a user