mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Add sizeof bignum macro
This commit is contained in:
parent
e9e9b65214
commit
3cff91a5cb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue