C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Slow bulky integer types (128-bit)

From: Lénárd Szolnoki <cpp_at_[hidden]>
Date: Wed, 29 Mar 2023 20:07:27 +0100
On 29 March 2023 15:29:35 BST, Peter Olsson via Std-Proposals <std-proposals_at_[hidden]> wrote:
>> The standard already defines - as you suggested - two categories:
>> standard integer types and extended integer types.
>> It could really make sense to introduce - as you called it -
>> `uintmax_oversize_t` -, or better named `uintmax_extended_t` to
>> cover both stand and extended types.
>
>Wouldn't uintmax_extended_t introduce the same problem again when
>vendors wants to add new bigger extended integer types in the future?

AFAIK _BitInt(N) is in C23, not sure if integral or if there is a lowish limit to N.

There might not be a reasonable maximum.

Cheers,
Lénárd

Received on 2023-03-29 19:07:30