C++ Logo

liaison

Advanced search

Re: [isocpp-wg14/wg21-liaison] bigint

From: Martin Uecker <ma.uecker_at_[hidden]>
Date: Sun, 23 Aug 2026 14:35:12 +0200
Am Sonntag, dem 23.08.2026 um 13:04 +0200 schrieb Jan Schultke via Liaison:
>
>
> On Sun, 23 Aug 2026 at 12:23, Jₑₙₛ Gustedt <jens.gustedt_at_[hidden]> wrote:
> > Jan,
> >
> >
...

> > >
> > > What are your thoughts?
> >
> > I think that a bigint type would be good to have in C. But it should
> > be an opaque library type, first, without extending C's arithmetic
> > operators. If that works, we could integrate it more closely into the
> > language, later.
> >
>
>
> To be clear, I'm not suggesting a big_int type for C, only the limb type that could be used internally.
>
> The C version of the feature would likely end up looking like a stdc-prefixed version of GNU MP, and I'm not really sure how much benefit there is to standardizing that, or whether WG14 has any appetite for copying and pasting GMP into the C standard.

I think C should have a native bigint type. I suggested
this before (not in a paper).


Martin

Received on 2026-08-23 12:35:21