gmp: update to 5.1.2

This commit is contained in:
Tom G. Christensen
2013-10-05 13:51:58 +02:00
parent ac7f0d9fbf
commit 783e0dfc57
4 changed files with 32 additions and 37 deletions

View File

@@ -0,0 +1,17 @@
diff -up gmp-5.1.2/tests/cxx/t-ops2.cc.orig gmp-5.1.2/tests/cxx/t-ops2.cc
--- gmp-5.1.2/tests/cxx/t-ops2.cc.orig 2013-05-20 16:59:58.000000000 +0200
+++ gmp-5.1.2/tests/cxx/t-ops2.cc 2013-06-26 22:05:24.510417000 +0200
@@ -26,6 +26,13 @@ the GNU MP Library test suite. If not,
#include "gmp-impl.h"
#include "tests.h"
+#ifndef trunc
+double trunc(double x)
+{
+ return x < 0 ? ceil(x) : floor(x);
+}
+#endif
+
#define CHECK1(Type,a,fun) \
ASSERT_ALWAYS(fun((Type)(a))==fun(a))