Is there a good lib out there to handle large integer of know size ?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 10 12:40:47 PDT 2017


On 6/10/17 3:28 PM, Era Scarecrow wrote:
> On Saturday, 9 January 2016 at 20:28:26 UTC, Andrei Alexandrescu wrote:
>> Who can champion ONE fixed large integer library for Phobos? -- Andrei
> 
>   Got a possible one. My implementation is heavy on assembly language to 
> take advantage of x86 features (like the carry flag, and giving you 64 & 
> 128bit inputs/results). Still building it, but it's promising, mostly 
> got cleanup on it to do and more unittests.
> 
>   Honestly the hardest part is writing the division code, which I think 
> I just got done.

That's cool as long as the assembler is guarded by version(X_86) and has 
a portable alternative. Where's the code? -- Andrei



More information about the Digitalmars-d mailing list