summaryrefslogtreecommitdiff
path: root/tests/tui_div.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-24 19:08:07 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-24 19:08:07 +0000
commit8d9644bdd7b4374d2a1473713671df5c62b685f2 (patch)
tree7f7e383929120df91d51a7feb6abaab638ab2822 /tests/tui_div.c
parent282a0c536ba6657ed769d220e67f1ba99b9c616d (diff)
downloadmpfr-8d9644bdd7b4374d2a1473713671df5c62b685f2.tar.gz
Prototypes: use static. Some code reformatting.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2224 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tui_div.c')
-rw-r--r--tests/tui_div.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/tui_div.c b/tests/tui_div.c
index 033d95d3b..773638689 100644
--- a/tests/tui_div.c
+++ b/tests/tui_div.c
@@ -28,13 +28,9 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
#include "mpfr-test.h"
-void check _PROTO((unsigned long, double, mp_rnd_t, double));
-void check_inexact _PROTO((void));
-void check_nan _PROTO((void));
-
/* checks that y/x gives the same results in double
and with mpfr with 53 bits of precision */
-void
+static void
check (unsigned long y, double x, mp_rnd_t rnd_mode, double z1)
{
double z2;
@@ -51,12 +47,12 @@ check (unsigned long y, double x, mp_rnd_t rnd_mode, double z1)
printf ("mpfr_ui_div failed for y=%lu x=%1.20e with rnd_mode=%s\n",
y, x, mpfr_print_rnd_mode (rnd_mode));
exit (1);
- }
+ }
mpfr_clear (xx);
mpfr_clear (zz);
}
-void
+static void
check_inexact (void)
{
mpfr_t x, y, z;
@@ -108,7 +104,8 @@ check_inexact (void)
mpfr_clear (z);
}
-void
+#if 0
+static void
check_nan (void)
{
mpfr_t d, q;
@@ -145,6 +142,7 @@ check_nan (void)
mpfr_clear (d);
mpfr_clear (q);
}
+#endif
int
main (int argc, char *argv[])