diff options
| author | Damien George <damien@micropython.org> | 2021-02-04 16:39:46 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-02-04 22:46:42 +1100 |
| commit | c891190c693ec04289f5773b2b27d125f8c6059f (patch) | |
| tree | ac74af14e2437316f2eae03478955030c27b2924 /py/mpconfig.h | |
| parent | ad4656b861f94277bed9647ca176e662ce5119e3 (diff) | |
py: Rename WORD_MSBIT_HIGH to MP_OBJ_WORD_MSBIT_HIGH.
To make it clear it is for mp_obj_t/mp_uint_t "word" types, and to prefix
this macro with MP_.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index e87c52f2b..454fc12b7 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1540,7 +1540,7 @@ typedef double mp_float_t; #define MP_BITS_PER_BYTE (8) #endif // mp_int_t value with most significant bit set -#define WORD_MSBIT_HIGH (((mp_uint_t)1) << (MP_BYTES_PER_OBJ_WORD * MP_BITS_PER_BYTE - 1)) +#define MP_OBJ_WORD_MSBIT_HIGH (((mp_uint_t)1) << (MP_BYTES_PER_OBJ_WORD * MP_BITS_PER_BYTE - 1)) // Make sure both MP_ENDIANNESS_LITTLE and MP_ENDIANNESS_BIG are // defined and that they are the opposite of each other. |
