diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2021-01-28 10:16:38 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2021-01-28 10:16:38 +0100 |
commit | f50b72d5bb02bcba3864004230d34b69af4923c1 (patch) | |
tree | 1d6b47cee3fbe1de1536acdc53fb435c6a403284 /erts/emulator/beam/big.h | |
parent | abfcabc5e8a1d224c2daf135808a81bb034d0245 (diff) | |
download | erlang-f50b72d5bb02bcba3864004230d34b69af4923c1.tar.gz |
big.h: Eliminate the BIG_DIGITS_PER_WORD define
BIG_DIGITS_PER_WORD is defined as:
#define BIG_DIGITS_PER_WORD (sizeof(Uint)/sizeof(ErtsDigit))
This value now always evaluates to 1, because ErtsDigit is defined as:
typedef Uint ErtsDigit;
Diffstat (limited to 'erts/emulator/beam/big.h')
-rw-r--r-- | erts/emulator/beam/big.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/erts/emulator/beam/big.h b/erts/emulator/beam/big.h index 005f34fdd9..fade06eb73 100644 --- a/erts/emulator/beam/big.h +++ b/erts/emulator/beam/big.h @@ -64,7 +64,6 @@ typedef Uint dsize_t; /* Vector size type */ #define BIG_SIGN(xp) (!!bignum_header_is_neg(*xp)) #define BIG_ARITY(xp) ((Uint)bignum_header_arity(*(xp))) #define BIG_DIGIT(xp,i) *(BIG_V(xp)+(i)) -#define BIG_DIGITS_PER_WORD (sizeof(Uint)/sizeof(ErtsDigit)) #define BIG_SIZE(xp) BIG_ARITY(xp) |