Permalink
Browse files

* core/number.c: importing more arprec math.

  • Loading branch information...
1 parent e7d13d7 commit bb0cf6cf35ac53669c75d3733a91b3eecb34d272 _why committed Jul 13, 2009
Showing with 582 additions and 48 deletions.
  1. +4 −0 COPYING
  2. +1 −0 core/internal.c
  3. +575 −48 core/number.c
  4. +2 −0 core/potion.h
View
@@ -19,6 +19,10 @@
The Mersenne Twister (MT19937)
(c) 1997-2002, Makoto Matsumoto and Takuji Nishimura (MIT licensed)
<http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html>
+ Decimal code based on ARPREC, an arbitrary-precision lib (BSD licensed)
+ (c) 2003-2009 Lawrence Berkeley Natl Lab
+ David H. Bailey, Yozo Hida, Karthik Jeyabalan, Xiaoye S. Li, Brandon Thompson
+ <http://crd.lbl.gov/~dhbailey/mpdist/>
Lastly, khash.h
(c) 2008, by Attractive Chaos
<http://attractivechaos.awardspace.com/khash.h.html> (MIT licensed)
View
@@ -98,6 +98,7 @@ Potion *potion_create(void *sp) {
P->uniq = (PNUniq)potion_rand_int();
PN_FLEX_NEW(P->vts, PN_TFLEX, PNFlex, TYPE_BATCH_SIZE);
PN_FLEX_SIZE(P->vts) = PN_TYPE_ID(PN_TUSER) + 1;
+ P->prec = PN_PREC;
potion_init(P);
return P;
}
Oops, something went wrong.

0 comments on commit bb0cf6c

Please sign in to comment.