mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-06 12:58:41 +00:00
2e6a56d1cc
This changeset adds official patches published on mpfr website. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
99 lines
3.4 KiB
Diff
99 lines
3.4 KiB
Diff
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;
|
|
|