From c260bc58e66f5fefc03b59c80c91a550282fb47c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 12 Jan 2014 16:15:47 +0200 Subject: [PATCH] Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set. --- py/mpconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/mpconfig.h b/py/mpconfig.h index d1f4840cfb..6deb442b8d 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -78,6 +78,8 @@ #define BITS_PER_BYTE (8) #define BITS_PER_WORD (BITS_PER_BYTE * BYTES_PER_WORD) +// machine_int_t value with most significant bit set +#define WORD_MSBIT_HIGH (1 << (BYTES_PER_WORD * 8 - 1)) // printf format spec to use for machine_int_t and friends #ifndef INT_FMT