summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-04-06 20:03:47 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-04-06 20:03:47 +0000
commite4f927434f16216f1497c6aa11cc4eee2e47ea5c (patch)
tree902c3140e7d78b8761c006ae16f9d3624c85df72 /tests
parentb0ccfd1c1906176330416da74cc94d46a773d235 (diff)
downloadmpfr-e4f927434f16216f1497c6aa11cc4eee2e47ea5c.tar.gz
a few patches suggested by Patrick Pelissier to ease porting to 16-bit
architectures: removed useless #include <time.h>, changed 1024 to 1024L, int i to lng i git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5347 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tcmp.c3
-rw-r--r--tests/tdiv.c1
-rw-r--r--tests/tget_f.c1
-rw-r--r--tests/tout_str.c1
-rw-r--r--tests/tpow_z.c1
-rw-r--r--tests/tset_d.c1
-rw-r--r--tests/tset_ld.c1
-rw-r--r--tests/tset_q.c1
-rw-r--r--tests/tset_si.c3
-rw-r--r--tests/tset_sj.c2
-rw-r--r--tests/tset_str.c1
-rw-r--r--tests/tset_z.c1
-rw-r--r--tests/tstrtofr.c1
-rw-r--r--tests/tui_sub.c1
14 files changed, 4 insertions, 15 deletions
diff --git a/tests/tcmp.c b/tests/tcmp.c
index 3e2d3920f..adaa0fd66 100644
--- a/tests/tcmp.c
+++ b/tests/tcmp.c
@@ -30,7 +30,8 @@ main (void)
{
double x, y;
mpfr_t xx, yy;
- int i, c;
+ int c;
+ long i;
mp_prec_t p;
tests_start_mpfr ();
diff --git a/tests/tdiv.c b/tests/tdiv.c
index 0301f8050..05437d16f 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tget_f.c b/tests/tget_f.c
index 13bbc3ffd..7180aa37a 100644
--- a/tests/tget_f.c
+++ b/tests/tget_f.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <limits.h>
#include "mpfr-test.h"
diff --git a/tests/tout_str.c b/tests/tout_str.c
index afc8744f6..cda8d7f23 100644
--- a/tests/tout_str.c
+++ b/tests/tout_str.c
@@ -24,7 +24,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tpow_z.c b/tests/tpow_z.c
index 4191c71c9..e5886ef53 100644
--- a/tests/tpow_z.c
+++ b/tests/tpow_z.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdlib.h>
#include <float.h>
-#include <time.h>
#include <math.h>
#include "mpfr-test.h"
diff --git a/tests/tset_d.c b/tests/tset_d.c
index 9eeef0416..d9178b15c 100644
--- a/tests/tset_d.c
+++ b/tests/tset_d.c
@@ -23,7 +23,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tset_ld.c b/tests/tset_ld.c
index df15b488e..752b18424 100644
--- a/tests/tset_ld.c
+++ b/tests/tset_ld.c
@@ -23,7 +23,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
-#include <time.h>
#include <limits.h>
#if WITH_FPU_CONTROL
#include <fpu_control.h>
diff --git a/tests/tset_q.c b/tests/tset_q.c
index 88162a753..d74f3c15b 100644
--- a/tests/tset_q.c
+++ b/tests/tset_q.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tset_si.c b/tests/tset_si.c
index 81e61606e..d511b789e 100644
--- a/tests/tset_si.c
+++ b/tests/tset_si.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <limits.h>
#include "mpfr-test.h"
@@ -49,7 +48,7 @@ test_2exp (void)
if (mpfr_cmp_ui(x, 1024*1024))
ERROR("(1024U,+10)");
- mpfr_set_si_2exp (x, -1024*1024, -10, GMP_RNDN);
+ mpfr_set_si_2exp (x, -1024L * 1024L, -10, GMP_RNDN);
if (mpfr_cmp_si(x, -1024))
ERROR("(1M,-10)");
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index 029df5160..bee04095e 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -127,7 +127,7 @@ check_set_uj_2exp (void)
ERROR("(1024U,-10)");
inex = mpfr_set_uj_2exp (x, 1024, 10, GMP_RNDN);
- if (inex || mpfr_cmp_ui(x, 1024*1024))
+ if (inex || mpfr_cmp_ui(x, 1024L * 1024L))
ERROR("(1024U,+10)");
inex = mpfr_set_uj_2exp (x, UINTMAX_MAX, 1000, GMP_RNDN);
diff --git a/tests/tset_str.c b/tests/tset_str.c
index cdd504cd2..7e6ca427a 100644
--- a/tests/tset_str.c
+++ b/tests/tset_str.c
@@ -24,7 +24,6 @@ MA 02110-1301, USA. */
#include <stdlib.h>
#include <string.h>
#include <limits.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tset_z.c b/tests/tset_z.c
index a3fe7c5a8..962e70b0e 100644
--- a/tests/tset_z.c
+++ b/tests/tset_z.c
@@ -23,7 +23,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tstrtofr.c b/tests/tstrtofr.c
index f0cf7ade8..3a0862809 100644
--- a/tests/tstrtofr.c
+++ b/tests/tstrtofr.c
@@ -24,7 +24,6 @@ MA 02110-1301, USA. */
#include <stdlib.h>
#include <string.h>
#include <limits.h>
-#include <time.h>
#include "mpfr-test.h"
diff --git a/tests/tui_sub.c b/tests/tui_sub.c
index c8f6bba73..e6e273427 100644
--- a/tests/tui_sub.c
+++ b/tests/tui_sub.c
@@ -23,7 +23,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
-#include <time.h>
#include "mpfr-test.h"