Go to the source code of this file.
Functions | |
void | bignum_zero (UCell *) |
Set bignum to zero. | |
void | bignum_seti (UCell *, int n) |
Initialize bignum from an integer. | |
void | bignum_setl (UCell *, int64_t n) |
Initialize bignum from a 64-bit integer. | |
void | bignum_setd (UCell *, double n) |
Initialize bignum from a double. | |
int64_t | bignum_l (const UCell *) |
Convert the bignum to a 64-bit integer. | |
double | bignum_d (const UCell *) |
Convert the bignum to a double. | |
int | bignum_equal (const UCell *, const UCell *) |
Test if two bignums are the same. | |
int | bignum_cmp (const UCell *, const UCell *) |
Compare two bignums. | |
void | bignum_abs (UCell *) |
Convert to absolute value. | |
void | bignum_negate (const UCell *, UCell *result) |
Negate the bignum. | |
void | bignum_add (const UCell *, const UCell *, UCell *result) |
Get the sum of two bignums. | |
void | bignum_sub (const UCell *, const UCell *, UCell *result) |
Get the difference between two bignums. | |
void | bignum_mul (const UCell *, const UCell *, UCell *result) |
Get the product of two bignums. |