https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115073
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Or another option is to use C23 <stdbit.h>, that is well defined for all values. But you need recent glibc (2.39 snapshots or 2.40) & gcc (14) for that.