Home > Mobile >  Can int_leastN_t and int_fastN_t have padding bits?
Can int_leastN_t and int_fastN_t have padding bits?

Time:12-23

Can int_leastN_t and int_fastN_t have padding bits?

Since both C11, 7.20.1.2 Minimum-width integer types and C11, 7.20.1.3 Fastest minimum-width integer types do not have "no padding bits", then I conclude that int_leastN_t and int_fastN_t can have padding bits. Is that correct?

CodePudding user response:

Yes, only (u)intN_t and unsigned char are specified pad-less.

Padding in any integer type is rare these days.

  • Related