Date: Tue, 10 Sep 2024 16:51:52 -0400
On Tue, Sep 10, 2024 at 4:49 PM Robin Savonen Söderholm via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> I would find something along the lines of the following:
> ```c++
> template <size_t BITS>
> using int_bits_t = /*specific int types that exactly BITS number of bits*/;
>
This is _BitInt(n), already present in C and actively proposed for C++.
For userspace implementations, see
https://quuxplusone.github.io/blog/2020/02/13/wide-integer-proof-of-concept/
HTH,
–Arthur
std-proposals_at_[hidden]> wrote:
> I would find something along the lines of the following:
> ```c++
> template <size_t BITS>
> using int_bits_t = /*specific int types that exactly BITS number of bits*/;
>
This is _BitInt(n), already present in C and actively proposed for C++.
For userspace implementations, see
https://quuxplusone.github.io/blog/2020/02/13/wide-integer-proof-of-concept/
HTH,
–Arthur
Received on 2024-09-10 20:52:06