diff options
| author | Damien George | 2021-02-04 15:32:59 +1100 |
|---|---|---|
| committer | Damien George | 2021-02-04 22:46:42 +1100 |
| commit | 7e956fae28e4e3fdea30f834d448eacfc4429de7 (patch) | |
| tree | 7404f6f2fda3d8c5533db9d56481cb703714e8b7 /py/mpconfig.h | |
| parent | 8a41ee19c22d7bb85fcbd90c9d06b9937a1b8c87 (diff) | |
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>
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 3c1ed28d8..3a0c5fb6e 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -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)) |
