Re: Big/Arbitrary integers
Re: Big/Arbitrary integers
- Subject: Re: Big/Arbitrary integers
- From: Shawn Erickson <email@hidden>
- Date: Tue, 24 Jan 2006 10:04:57 -0800
On 1/24/06, Shawn Erickson <email@hidden> wrote:
> On 1/23/06, Greg Herlihy <email@hidden> wrote:
>
> > For a "native" implementation of a big integer library (that is one that
> > ships on every Mac), I would look at openssl's Big Number library whose
> > interface is found in <openssl/bn.h> and whose documentation can be found in
> > the "bn" man page and whose source can even be downloaded from the
> > openssl.org web site.
>
> I would also consider using the vBigNum library that is part of the
> Accelerate framework (housed as part of vecLib)... not knowing exactly
> what is wanted.
>
> <file:///System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h>
I should point out that vBigNum supports sign or unsigned integers
that are 256, 512, or 1024 bits in width and is available on Mac OS X
since 10.0. It uses vector operations if the CPU supports it otherwise
it falls back on an CPU optimized scalar implementation. Apple has/is
porting it to use SSE on Intel as well.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden