Re: [PATCH v2 1/4] system_data_types.7: Add int_leastN_t family of types

Jonathan Wakely
2020-10-02T13:09:16Z

On Fri, 2 Oct 2020 at 09:36, Alejandro Colomar via Gcc <gcc@gcc.gnu.org> wrote:
>
> Hi Paul,
>
> On 2020-10-01 19:38, Paul Eggert wrote:
> > On 10/1/20 7:35 AM, Alejandro Colomar via Libc-alpha wrote:
> >> +The narrowest signed integer type
> >> +of a width of at least N bits,
> >
> > Motivation is missing here. Why is there an int_leastN_t type at all?
>
> Well, I'd say the motivation is for the standard to allow
> unicorn implementations that have types that are not of normal widths
> For example, this allows an implementation to have an int of 33 bits,
> have int_least32_t be that int, and then not provide int32_t.

C allows that, but POSIX says int32_t is required.