summaryrefslogtreecommitdiff
path: root/source/l/mpfr/patches/patch03
blob: 3ce4952f2f38155335849bf652c87bebe84ec981 (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
diff -Naurd mpfr-2.4.2-a/PATCHES mpfr-2.4.2-b/PATCHES
--- mpfr-2.4.2-a/PATCHES	2010-01-11 15:27:18.000000000 +0000
+++ mpfr-2.4.2-b/PATCHES	2010-01-11 15:30:31.000000000 +0000
@@ -0,0 +1 @@
+gmp5
diff -Naurd mpfr-2.4.2-a/VERSION mpfr-2.4.2-b/VERSION
--- mpfr-2.4.2-a/VERSION	2009-12-18 12:05:09.000000000 +0000
+++ mpfr-2.4.2-b/VERSION	2010-01-11 15:29:40.000000000 +0000
@@ -1 +1 @@
-2.4.2-p2
+2.4.2-p3
diff -Naurd mpfr-2.4.2-a/configure mpfr-2.4.2-b/configure
--- mpfr-2.4.2-a/configure	2009-11-30 02:44:35.000000000 +0000
+++ mpfr-2.4.2-b/configure	2010-01-11 15:28:56.000000000 +0000
@@ -20449,6 +20449,9 @@
 main ()
 {
 
+#ifndef BITS_PER_MP_LIMB
+#define BITS_PER_MP_LIMB GMP_LIMB_BITS
+#endif
   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
 
diff -Naurd mpfr-2.4.2-a/configure.in mpfr-2.4.2-b/configure.in
--- mpfr-2.4.2-a/configure.in	2009-11-30 02:43:08.000000000 +0000
+++ mpfr-2.4.2-b/configure.in	2009-11-30 02:43:08.000000000 +0000
@@ -424,6 +424,9 @@
 #include "gmp.h"
 #include "gmp-impl.h"
 ]], [[
+#ifndef BITS_PER_MP_LIMB
+#define BITS_PER_MP_LIMB GMP_LIMB_BITS
+#endif
   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
 ]])], [AC_MSG_RESULT(yes)], [
diff -Naurd mpfr-2.4.2-a/mpfr-impl.h mpfr-2.4.2-b/mpfr-impl.h
--- mpfr-2.4.2-a/mpfr-impl.h	2009-11-30 02:43:08.000000000 +0000
+++ mpfr-2.4.2-b/mpfr-impl.h	2010-01-11 15:28:01.000000000 +0000
@@ -65,6 +65,12 @@
 # ifndef __GMP_IMPL_H__
 #  include "gmp-impl.h"
 # endif
+# ifndef BITS_PER_MP_LIMB
+#  define BITS_PER_MP_LIMB GMP_LIMB_BITS
+# endif
+#ifndef mpn_sqr_n
+# define mpn_sqr_n mpn_sqr
+#endif
 # ifdef MPFR_NEED_LONGLONG_H
 #  include "longlong.h"
 # endif
diff -Naurd mpfr-2.4.2-a/mpfr.h mpfr-2.4.2-b/mpfr.h
--- mpfr-2.4.2-a/mpfr.h	2009-12-18 12:05:09.000000000 +0000
+++ mpfr-2.4.2-b/mpfr.h	2010-01-11 15:29:40.000000000 +0000
@@ -27,7 +27,7 @@
 #define MPFR_VERSION_MAJOR 2
 #define MPFR_VERSION_MINOR 4
 #define MPFR_VERSION_PATCHLEVEL 2
-#define MPFR_VERSION_STRING "2.4.2-p2"
+#define MPFR_VERSION_STRING "2.4.2-p3"
 
 /* Macros dealing with MPFR VERSION */
 #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
diff -Naurd mpfr-2.4.2-a/version.c mpfr-2.4.2-b/version.c
--- mpfr-2.4.2-a/version.c	2009-12-18 12:05:09.000000000 +0000
+++ mpfr-2.4.2-b/version.c	2010-01-11 15:29:40.000000000 +0000
@@ -25,5 +25,5 @@
 const char *
 mpfr_get_version (void)
 {
-  return "2.4.2-p2";
+  return "2.4.2-p3";
 }