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

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 6 14:14:51 PST 2016


On Wed, Jan 06, 2016 at 09:57:13PM +0000, Guillaume Piolat via Digitalmars-d wrote:
> On Wednesday, 6 January 2016 at 21:25:45 UTC, deadalnix wrote:
> >In my case, I'm interested in 160 and 256 bits integers. Using BigInt
> >seems wasteful as I know the integer size I want. Do we have
> >something like this around ?
> 
> https://github.com/d-gamedev-team/gfm/blob/master/math/gfm/math/wideint.d
> 
> public domain. Slow division. Only power-of-2 bits supported.

Looks nice.  With a bit of work, it could be a potential Phobos addition
IMO.


T

-- 
Perhaps the most widespread illusion is that if we were in power we
would behave very differently from those who now hold it---when, in
truth, in order to get power we would have to become very much like
them. -- Unknown


More information about the Digitalmars-d mailing list