Add sizeof bignum macro

This commit is contained in:
Justin Ethier 2022-06-25 10:30:24 -04:00
parent e9e9b65214
commit 3cff91a5cb

View file

@ -856,6 +856,8 @@ typedef struct {
#define C_bignum_sign(n) (((bignum2_type *)n)->sign)
#define C_bignum_negativep(n) (((bignum2_type *)n)->sign == 1)
#define C_SIZEOF_BIGNUM(n) (sizeof(bignum2_type) + (C_bignum_digits(n) * sizeof(uint32_t)))
// TODO: covert applicable definitions below -
// #ifdef C_SIXTY_FOUR
// # define C_MOST_POSITIVE_FIXNUM 0x3fffffffffffffffL