File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 103103 /*!< \brief Evaluates to the largest representable `unsigned int` in a word the size of `x`. @hideinitializer */
104104#define MAX_SINT_OF (x ) ((int64_t)((((uint64_t)1 << ((sizeof(x) * (uint64_t)BITS_PER_BYTE) - (uint64_t)2)) - (uint64_t)1) | ((uint64_t)1 << ((sizeof(x) * (uint64_t)BITS_PER_BYTE) - (uint64_t)2))))
105105 /*!< \brief Evaluates to the largest representable `signed int` in a word the size of `x`. @hideinitializer */
106- #define MIN_SINT_OF (x ) ((int64_t)((uint64_t)1 << ((sizeof( x) * (uint64_t)BITS_PER_BYTE) - (uint64_t)1)) )
106+ #define MIN_SINT_OF (x ) (-MAX_SINT_OF( x) - 1 )
107107 /*!< \brief Evaluates to the largest negative representable `signed int` in a word the size of `x`. @hideinitializer */
108108
109109#define WOLFSENTRY_SET_BITS (enumint , bits ) ((enumint) |= (bits))
You can’t perform that action at this time.
0 commit comments