py: Rename BITS_PER_BYTE to MP_BITS_PER_BYTE.

To give this macro a standard MP_ prefix.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-02-04 15:32:59 +11:00
parent 8a41ee19c2
commit 7e956fae28
5 changed files with 10 additions and 9 deletions

View File

@@ -1535,8 +1535,9 @@ typedef double mp_float_t;
#define BYTES_PER_WORD (sizeof(mp_uint_t))
#endif
#ifndef BITS_PER_BYTE
#define BITS_PER_BYTE (8)
// Number of bits in a byte
#ifndef MP_BITS_PER_BYTE
#define MP_BITS_PER_BYTE (8)
#endif
// mp_int_t value with most significant bit set
#define WORD_MSBIT_HIGH (((mp_uint_t)1) << (BYTES_PER_WORD * 8 - 1))