summaryrefslogtreecommitdiff
path: root/tests/tsqr.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 14:31:41 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-09-02 14:31:41 +0000
commit12174d60d41cd675df6cc718b0cd3598f1aa9f67 (patch)
treed16fc00fc7660c843c26088eaeffa4d5cc8758a3 /tests/tsqr.c
parent354669a1a8cc1d5988bb9ce14faf5248ff94327e (diff)
downloadmpc-12174d60d41cd675df6cc718b0cd3598f1aa9f67.tar.gz
moved declaration of set_pi_over_2 from acos.c/asin.c to header file mpc-impl.h
added a few key words "static" and "extern" in tests/ git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@828 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsqr.c')
-rw-r--r--tests/tsqr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/tsqr.c b/tests/tsqr.c
index 4267474..366d3a7 100644
--- a/tests/tsqr.c
+++ b/tests/tsqr.c
@@ -1,6 +1,6 @@
/* tsqr -- test file for mpc_sqr.
-Copyright (C) 2002, 2005, 2008 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
+Copyright (C) 2002, 2005, 2008, 2010 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
This file is part of the MPC Library.
@@ -23,11 +23,11 @@ MA 02111-1307, USA. */
#include <stdlib.h>
#include "mpc-tests.h"
-void cmpsqr (mpc_srcptr, mpc_rnd_t);
-void testsqr (long, long, mpfr_prec_t, mpc_rnd_t);
-void special (void);
+static void cmpsqr (mpc_srcptr, mpc_rnd_t);
+static void testsqr (long, long, mpfr_prec_t, mpc_rnd_t);
+static void special (void);
-void cmpsqr (mpc_srcptr x, mpc_rnd_t rnd)
+static void cmpsqr (mpc_srcptr x, mpc_rnd_t rnd)
/* computes the square of x with the specific function or by simple */
/* multiplication using the rounding mode rnd and compares the results */
/* and return values. */
@@ -130,7 +130,7 @@ void cmpsqr (mpc_srcptr x, mpc_rnd_t rnd)
}
-void
+static void
testsqr (long a, long b, mpfr_prec_t prec, mpc_rnd_t rnd)
{
mpc_t x;
@@ -145,7 +145,7 @@ testsqr (long a, long b, mpfr_prec_t prec, mpc_rnd_t rnd)
}
-void
+static void
special (void)
{
mpc_t x, z;
@@ -172,7 +172,7 @@ special (void)
mpc_clear (z);
}
-void
+static void
bugs (void)
{
mpc_t z1;
@@ -197,7 +197,7 @@ bugs (void)
}
/* infinite loop */
-void
+static void
bug20090930 (void)
{
mpc_t rop, op;
@@ -212,7 +212,7 @@ bug20090930 (void)
}
/* other infinite loop */
-void
+static void
bug20091001 (void)
{
mpc_t rop, op;