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

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 12 14:14:50 PDT 2017


On Monday, 12 June 2017 at 15:41:03 UTC, Era Scarecrow wrote:
> On Monday, 12 June 2017 at 13:41:36 UTC, deadalnix wrote:
>> You misunderstood. We need cent/ucent supported by the 
>> compiler to get to larger integral types efficiently. There 
>> are no ways around it. There are a ton of operations such as 
>> the X86 MUL which are able to produce a large multiplication 
>> into 2 registers. There are no way to leverage these without 
>> compiler provided cent/ucent.
>
>  Agreed. But until larger types are natively avaliable (either 
> by simulation built into the compiler or by hardware registers) 
> you gotta work with what you got.

I work with SDC on that one. That's the only reasonable path 
forward.


More information about the Digitalmars-d mailing list