New macro 'l_numbits'

This commit is contained in:
Roberto Ierusalimschy
2025-03-27 12:38:29 -03:00
parent b0f3df16a4
commit ef5d171cc8
6 changed files with 9 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ typedef union {
** MAXABITS is the largest integer such that 2^MAXABITS fits in an
** unsigned int.
*/
#define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1)
#define MAXABITS (l_numbits(int) - 1)
/*