Date: Wed, 2 Jul 2025 14:58:03 +0100
On Wed, 2 Jul 2025 at 14:45, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> On Wednesday, 2 July 2025 06:14:29 Pacific Daylight Time Sebastian
> Wittmeier
> via Std-Proposals wrote:
> > If something has at least (>=) 8 bits, then it can also have e.g. 16
> bits?
> >
> > Even if bytes are 8 bits?
>
> https://cigix.me/c17#7.20.1.2.p2:
>
> "The typedef name uint_leastN_t designates an unsigned integer type with a
> width of at least N, such that no unsigned integer type with lesser size
> has
> at least the specified width. "
>
> So no, if bytes are 8 bits, that means there's an integer type with 8
> bits,
> meaning uint_least8_t must be that type, not bigger.
>
i.e. it's not "any number of bits that is at least 8", it's "the least
possible number of bits that is no smaller than 8".
std-proposals_at_[hidden]> wrote:
> On Wednesday, 2 July 2025 06:14:29 Pacific Daylight Time Sebastian
> Wittmeier
> via Std-Proposals wrote:
> > If something has at least (>=) 8 bits, then it can also have e.g. 16
> bits?
> >
> > Even if bytes are 8 bits?
>
> https://cigix.me/c17#7.20.1.2.p2:
>
> "The typedef name uint_leastN_t designates an unsigned integer type with a
> width of at least N, such that no unsigned integer type with lesser size
> has
> at least the specified width. "
>
> So no, if bytes are 8 bits, that means there's an integer type with 8
> bits,
> meaning uint_least8_t must be that type, not bigger.
>
i.e. it's not "any number of bits that is at least 8", it's "the least
possible number of bits that is no smaller than 8".
Received on 2025-07-02 13:58:22