summaryrefslogtreecommitdiff
path: root/patches/mpfr/3.1.1/130-gmp51-compat.patch
blob: ecf7537710e1c8afd676b975985f5e4900510b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
diff -Naurd mpfr-3.1.1-a/PATCHES mpfr-3.1.1-b/PATCHES
--- mpfr-3.1.1-a/PATCHES	2013-02-22 12:17:27.000000000 +0000
+++ mpfr-3.1.1-b/PATCHES	2013-02-22 12:18:34.000000000 +0000
@@ -0,0 +1 @@
+gmp51-compat
diff -Naurd mpfr-3.1.1-a/VERSION mpfr-3.1.1-b/VERSION
--- mpfr-3.1.1-a/VERSION	2012-08-30 09:35:12.000000000 +0000
+++ mpfr-3.1.1-b/VERSION	2013-02-22 12:18:20.000000000 +0000
@@ -1 +1 @@
-3.1.1-p2
+3.1.1-p3
diff -Naurd mpfr-3.1.1-a/src/get_f.c mpfr-3.1.1-b/src/get_f.c
--- mpfr-3.1.1-a/src/get_f.c	2012-07-03 15:01:19.000000000 +0000
+++ mpfr-3.1.1-b/src/get_f.c	2013-02-22 12:18:06.000000000 +0000
@@ -61,7 +61,7 @@
 
           sx = PREC (x);
           SIZ (x) = sx;
-          xp = LIMBS (x);
+          xp = PTR (x);
           for (i = 0; i < sx; i++)
             xp[i] = MP_LIMB_T_MAX;
 
diff -Naurd mpfr-3.1.1-a/src/mpfr-gmp.h mpfr-3.1.1-b/src/mpfr-gmp.h
--- mpfr-3.1.1-a/src/mpfr-gmp.h	2012-07-03 15:01:16.000000000 +0000
+++ mpfr-3.1.1-b/src/mpfr-gmp.h	2013-02-22 12:18:06.000000000 +0000
@@ -163,7 +163,6 @@
 #define SIZ(x) ((x)->_mp_size)
 #define ABSIZ(x) ABS (SIZ (x))
 #define PTR(x) ((x)->_mp_d)
-#define LIMBS(x) ((x)->_mp_d)
 #define EXP(x) ((x)->_mp_exp)
 #define PREC(x) ((x)->_mp_prec)
 #define ALLOC(x) ((x)->_mp_alloc)
diff -Naurd mpfr-3.1.1-a/src/mpfr.h mpfr-3.1.1-b/src/mpfr.h
--- mpfr-3.1.1-a/src/mpfr.h	2012-08-30 09:35:12.000000000 +0000
+++ mpfr-3.1.1-b/src/mpfr.h	2013-02-22 12:18:20.000000000 +0000
@@ -27,7 +27,7 @@
 #define MPFR_VERSION_MAJOR 3
 #define MPFR_VERSION_MINOR 1
 #define MPFR_VERSION_PATCHLEVEL 1
-#define MPFR_VERSION_STRING "3.1.1-p2"
+#define MPFR_VERSION_STRING "3.1.1-p3"
 
 /* Macros dealing with MPFR VERSION */
 #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
diff -Naurd mpfr-3.1.1-a/src/version.c mpfr-3.1.1-b/src/version.c
--- mpfr-3.1.1-a/src/version.c	2012-08-30 09:35:12.000000000 +0000
+++ mpfr-3.1.1-b/src/version.c	2013-02-22 12:18:20.000000000 +0000
@@ -25,5 +25,5 @@
 const char *
 mpfr_get_version (void)
 {
-  return "3.1.1-p2";
+  return "3.1.1-p3";
 }
diff -Naurd mpfr-3.1.1-a/tests/tadd.c mpfr-3.1.1-b/tests/tadd.c
--- mpfr-3.1.1-a/tests/tadd.c	2012-07-03 15:01:24.000000000 +0000
+++ mpfr-3.1.1-b/tests/tadd.c	2013-02-22 12:18:06.000000000 +0000
@@ -20,7 +20,7 @@
 http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
 
-#define NUM 30000
+#define N 30000
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -674,7 +674,7 @@
 
   mpfr_init2 (one, MPFR_PREC_MIN);
   mpfr_set_ui (one, 1, MPFR_RNDN);
-  for (n = 0; n < NUM; n++)
+  for (n = 0; n < N; n++)
     {
       mpfr_prec_t prec_a, prec_b, prec_c;
       mpfr_exp_t tb=0, tc, diff;
diff -Naurd mpfr-3.1.1-a/tests/tgeneric.c mpfr-3.1.1-b/tests/tgeneric.c
--- mpfr-3.1.1-a/tests/tgeneric.c	2012-07-03 15:01:24.000000000 +0000
+++ mpfr-3.1.1-b/tests/tgeneric.c	2013-02-22 12:18:06.000000000 +0000
@@ -121,7 +121,7 @@
 #endif
 
 static void
-test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int N)
+test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int nmax)
 {
   mpfr_prec_t prec, xprec, yprec;
   mpfr_t x, y, z, t, w;
@@ -155,7 +155,7 @@
       mpfr_set_prec (w, yprec);
 
       /* Note: in precision p1, we test 4 special cases. */
-      for (n = 0; n < (prec == p1 ? N + 4 : N); n++)
+      for (n = 0; n < (prec == p1 ? nmax + 4 : nmax); n++)
         {
           int infinite_input = 0;