summaryrefslogtreecommitdiff
path: root/math/asir2000/files/patch-ca
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-02-01 16:22:29 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-02-01 16:22:29 +0000
commit0f709c35639881e96edfefa8ecdbce98b1f1055b (patch)
tree7bfd6a0ffe4a62b5e0b074a158f6f74ac77da0f2 /math/asir2000/files/patch-ca
parent. Update to 1.02.002. (diff)
Unreak: Chase pari-devel, update to 20050131
PR: ports/76881 Submitted by: Saito Tomokatsu (maintainer)
Notes
Notes: svn path=/head/; revision=127860
Diffstat (limited to 'math/asir2000/files/patch-ca')
-rw-r--r--math/asir2000/files/patch-ca20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/asir2000/files/patch-ca b/math/asir2000/files/patch-ca
new file mode 100644
index 000000000000..37add6e025cf
--- /dev/null
+++ b/math/asir2000/files/patch-ca
@@ -0,0 +1,20 @@
+--- builtin/parif.c.orig Sat Feb 15 07:29:07 2003
++++ builtin/parif.c Fri Jan 7 01:38:45 2005
+@@ -95,7 +95,7 @@
+ { GEN _pt1_,_pt2_,_pt3_; CALLPARI2(pf,ARG0(ar),ARG1(ar),MKPREC(ar,3,ARG2(ar)),rp); }
+
+ #if defined(INTERVAL)
+-#define PREC_CONV pariK1
++#define PREC_CONV (0.103810253/(BYTES_IN_LONG/4)) /* log(10)/(SL*log(2)) */
+ #else
+ #if defined(LONG_IS_32BIT)
+ #define PREC_CONV 0.103810253
+@@ -243,7 +243,7 @@
+ GEN p1,p2,p3;
+
+ ritopa_i(a,1,&p1); ritopa_i(b,1,&p2);
+- p3 = mppgcd(p1,p2);
++ p3 = gcdii(p1,p2);
+ patori_i(p3,r); asir_cgiv(p3); asir_cgiv(p2); asir_cgiv(p1);
+ }
+