diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-01-24 11:29:42 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-01-24 11:29:42 +0000 |
commit | 30ccf9169d0e9974c6485a1b85f4cc1f109217cc (patch) | |
tree | fdf296beadb385d367e3edde98ec17b0c3eb35aa /tests/tsub_ui.c | |
parent | b592f1db048beec9632d489dc931e0976557b6b0 (diff) | |
download | mpfr-30ccf9169d0e9974c6485a1b85f4cc1f109217cc.tar.gz |
Fixed prototypes (use static...).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2220 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsub_ui.c')
-rw-r--r-- | tests/tsub_ui.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/tsub_ui.c b/tests/tsub_ui.c index 85cad802c..4b7b2aaee 100644 --- a/tests/tsub_ui.c +++ b/tests/tsub_ui.c @@ -29,14 +29,11 @@ MA 02111-1307, USA. */ #include "mpfr-impl.h" #include "mpfr-test.h" -void check_two_sum _PROTO ((mp_prec_t)); -void check3 _PROTO ((double, unsigned long, mp_rnd_t, double)); - #define check(x,y,r) check3(x,y,r,0.0) /* checks that x+y gives the same results in double and with mpfr with 53 bits of precision */ -void +static void check3 (double x, unsigned long y, mp_rnd_t rnd_mode, double z1) { double z2; @@ -63,7 +60,7 @@ check3 (double x, unsigned long y, mp_rnd_t rnd_mode, double z1) /* FastTwoSum: if EXP(x) >= EXP(y), u = o(x+y), v = o(u-x), w = o(y-v), then x + y = u + w thus if u = o(y-x), v = o(u+x), w = o(v-y), then y-x = u-w */ -void +static void check_two_sum (mp_prec_t p) { unsigned int x; @@ -107,7 +104,7 @@ check_two_sum (mp_prec_t p) mpfr_clear (w); } -void +static void check_nans (void) { mpfr_t x, y; @@ -155,5 +152,3 @@ main (int argc, char *argv[]) tests_end_mpfr (); return 0; } - - |