https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
--- Comment #6 from joseph at codesourcery dot com ---
It's _BitInt in C2X, see N2763 for the final wording. The operator for
computing the width of a type, present in earlier drafts, was removed to
get a minimal version into C2X; I don't kno
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
--- Comment #5 from Alejandro Colomar ---
Thanks for that info. It's nice to see the standard is considering that.
Yes, we should add what the standard is going to add, so I'd wait to see what
the standard decides in the end.
Cheers,
Alex
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
--- Comment #3 from Alejandro Colomar ---
D'oh.
s/comma/parenthesis/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
--- Comment #2 from Alejandro Colomar ---
There was a missing comma. Fix:
#define __STYPE_MAX(t) (t) 1 << (widthof(t) - 2)) - 1) << 1) + 1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989
--- Comment #1 from Alejandro Colomar ---
This also triggers the following wish:
'widthof(t)', which would be equivalent to 'sizeof(t) * CHAR_BIT' for normal
types, but would be equal to N in the case of _ExtInt(N).
It could also be used to me