C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Shorter fixed-width integer types

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 02 Jul 2025 10:41:19 -0700
On Wednesday, 2 July 2025 06:58:03 Pacific Daylight Time Jonathan Wakely wrote:
> 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".

The "any number" case is uint_fastNN_t, where the implementors make a decision
which type they consider fast.

For example, on x86-64/Linux, uint_fast32_t has 64 bits.
https://gcc.godbolt.org/z/8M6v6WhTG

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Platform & System Engineering

Received on 2025-07-02 17:41:24