diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 5601cc2f7..8e06153a8 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1468,7 +1468,9 @@ typedef double mp_float_t; #define BYTES_PER_WORD (sizeof(mp_uint_t)) #endif +#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)) |