summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-02-04 15:27:53 +1100
committerDamien George <damien@micropython.org>2021-02-04 22:46:42 +1100
commit8a41ee19c22d7bb85fcbd90c9d06b9937a1b8c87 (patch)
treee62d246dc8a6a7e8016e3dc6d5c3aff698b66b21 /py/mpconfig.h
parent7c4435459261f1ea93577938b1ab281239d159e7 (diff)
py: Remove BITS_PER_WORD definition.
It's only used in one location, to test if << or >> will overflow when shifting mp_uint_t. For such a test it's clearer to use sizeof(lhs_val), which will be valid even if the type of lhs_val changes. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index d9a30cd30..3c1ed28d8 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1538,7 +1538,6 @@ typedef double mp_float_t;
#ifndef BITS_PER_BYTE
#define BITS_PER_BYTE (8)
#endif
-#define BITS_PER_WORD (BITS_PER_BYTE * BYTES_PER_WORD)
// mp_int_t value with most significant bit set
#define WORD_MSBIT_HIGH (((mp_uint_t)1) << (BYTES_PER_WORD * 8 - 1))