summaryrefslogtreecommitdiff
path: root/tests/tcmp2.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/tcmp2.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/tcmp2.c')
-rw-r--r--tests/tcmp2.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/tcmp2.c b/tests/tcmp2.c
index b290c9b92..e26f3b426 100644
--- a/tests/tcmp2.c
+++ b/tests/tcmp2.c
@@ -26,13 +26,8 @@ MA 02111-1307, USA. */
#include "mpfr-impl.h"
#include "mpfr-test.h"
-void tcmp2 _PROTO ((double, double, int));
-void special _PROTO ((void));
-void worst_cases _PROTO ((void));
-void set_bit _PROTO ((mpfr_t, unsigned int, int));
-
/* set bit n of x to b, where bit 0 is the most significant one */
-void
+static void
set_bit (mpfr_t x, unsigned int n, int b)
{
unsigned l;
@@ -52,7 +47,7 @@ set_bit (mpfr_t x, unsigned int n, int b)
y = 1.u 0 v 1^k low(y)
mpfr_cmp2 (x, y) returns 1 + |u| + |v| + k for low(x) >= low(y),
and 1 + |u| + |v| + k + 1 otherwise */
-void
+static void
worst_cases (void)
{
mpfr_t x, y;
@@ -146,7 +141,7 @@ worst_cases (void)
mpfr_clear (y);
}
-void
+static void
tcmp2 (double x, double y, int i)
{
mpfr_t xx, yy;
@@ -186,7 +181,7 @@ tcmp2 (double x, double y, int i)
mpfr_clear(xx); mpfr_clear(yy);
}
-void
+static void
special (void)
{
mpfr_t x, y;