C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D3666R0 Bit-precise integers

From: (wrong string) Åberg <haberg_1_at_[hidden]>
Date: Wed, 3 Sep 2025 14:53:01 +0200
> On 2 Sep 2025, at 18:38, Tiago Freire via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> You can't just use a _BitInt and expect it to align because it doesn't have too, and according to you own words it can't be used for larger specialized registers, that's what you and everyone wants to do but that is not what it actually does.

Do you want to have bit_int_fast<n> and bit_int_least<n> as fixed-width integer types?
https://en.cppreference.com/w/cpp/types/integer.html

The fast ones could align (pad) with words, and the least ones with bytes.

Received on 2025-09-03 12:53:15