News for hackers. Stuff that matters.
Re:How hard can generating 1024-bit primes be? by nullc on Friday May 03, 2024 @11:07PM (#40254498)
On 64-bit hosts using the full widening multiplier requires that you use 128 bit integers-- which aren't portable. :( (in particular, MSVC doesn't have it last I checked). It's the obvious thing to do where they exist however.
Re:How hard can generating 1024-bit primes be? by lifthrasiir on Friday May 03, 2024 @11:50PM (#40254651)
Yeah, a lack of guaranteed existence of uint128_t is problematic for C. (But __int128 is reasonably portable!) Rust always has u128/i128 in comparison.