Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set.

This commit is contained in:
Paul Sokolovsky 2014-01-12 16:15:47 +02:00
parent fc5aac82cb
commit c260bc58e6
1 changed files with 2 additions and 0 deletions

View File

@ -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