News for hackers. Stuff that matters.
Re:How hard can generating 1024-bit primes be? by AndriyKunitsyn on Saturday May 04, 2024 @04:40AM (#40255980)
Curiously, C actually has bignums. Now. In C23, they added a _BitInt(N) type (e.g., "_BitInt(1024)" for a 128-byte type).

The compiler support for that is limited, though. To let N be >128 in Clang, -fexperimental-max-bitint-width=N flag can be provided. If N>128 and _BitInt(N) is divided by something, the compiler will just crash, but +, -, * all work as expected.

Re:How hard can generating 1024-bit primes be? by petters on Saturday May 04, 2024 @05:20AM (#40256146)
With all the things the C standard lacks... I would not have expected this to be included!
Re:How hard can generating 1024-bit primes be? by jcalvinowens on Sunday May 05, 2024 @01:08AM (#40262411)
Neat. Maybe in ten years I'll actually be able rely on it existing in code I write!