diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-12 01:27:53 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-12 01:27:53 +0000 |
commit | 4418c085eb0a49bf91ec61c02750ba0e5f371234 (patch) | |
tree | 241cd0a4d22855aea6e3978e0bca4bd8b3134033 /tests/tdiv.c | |
parent | 374b9fa1ec9ccbfc7dc2026f3ff7c45ef7aaf6c7 (diff) | |
download | mpfr-4418c085eb0a49bf91ec61c02750ba0e5f371234.tar.gz |
Patches by Kevin Ryde for K&R compilers
and other fixes in prototypes.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1649 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r-- | tests/tdiv.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c index a0b79dcd4..dffb9a24e 100644 --- a/tests/tdiv.c +++ b/tests/tdiv.c @@ -1,6 +1,6 @@ /* Test file for mpfr_div. -Copyright (C) 1999, 2001 Free Software Foundation, Inc. +Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. This file is part of the MPFR Library. @@ -36,7 +36,8 @@ void check_convergence _PROTO((void)); void check_lowr _PROTO((void)); void check_inexact _PROTO((void)); -void check4 (double N, double D, mp_rnd_t rnd_mode, int p, double Q) +void +check4 (double N, double D, mp_rnd_t rnd_mode, int p, double Q) { mpfr_t q, n, d; double Q2; @@ -59,7 +60,8 @@ void check4 (double N, double D, mp_rnd_t rnd_mode, int p, double Q) mpfr_clear(q); mpfr_clear(n); mpfr_clear(d); } -void check24 (float N, float D, mp_rnd_t rnd_mode, float Q) +void +check24 (float N, float D, mp_rnd_t rnd_mode, float Q) { mpfr_t q, n, d; float Q2; @@ -79,7 +81,8 @@ void check24 (float N, float D, mp_rnd_t rnd_mode, float Q) /* the following examples come from the paper "Number-theoretic Test Generation for Directed Rounding" from Michael Parks, Table 2 */ -void check_float() +void +check_float(void) { float b=8388608.0; /* 2^23 */ @@ -124,7 +127,8 @@ void check_float() check24(b*12582913.0, 8388610.0, GMP_RNDD, 1.258291e7); } -void check_convergence () +void +check_convergence (void) { mpfr_t x, y; int i, j; @@ -166,7 +170,8 @@ void check_convergence () mpfr_clear(x); mpfr_clear(y); } -void check_lowr () +void +check_lowr (void) { mpfr_t x, y, z, z2, z3, tmp; int k, c; @@ -296,7 +301,7 @@ void check_lowr () #define MAX_PREC 100 void -check_inexact () +check_inexact (void) { mpfr_t x, y, z, u; mp_prec_t px, py, pu; |