summaryrefslogtreecommitdiff
path: root/tests/ttanh.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ttanh.c')
-rw-r--r--tests/ttanh.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/ttanh.c b/tests/ttanh.c
index 26d9fbe..2312b9e 100644
--- a/tests/ttanh.c
+++ b/tests/ttanh.c
@@ -1,6 +1,6 @@
/* ttanh -- test file for mpc_tanh.
-Copyright (C) 2008 INRIA
+Copyright (C) 2008, 2013 INRIA
This file is part of GNU MPC.
@@ -20,15 +20,22 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include "mpc-tests.h"
+#define MPC_FUNCTION_CALL \
+ P[0].mpc_inex = mpc_tanh (P[1].mpc, P[2].mpc, P[3].mpc_rnd)
+#define MPC_FUNCTION_CALL_REUSE_OP1 \
+ P[0].mpc_inex = mpc_tanh (P[1].mpc, P[1].mpc, P[3].mpc_rnd)
+
+#include "data_check.tpl"
+#include "tgeneric.tpl"
+
int
main (void)
{
- DECL_FUNC (CC, f, mpc_tanh);
-
test_start ();
- data_check (f, "tanh.dat");
- tgeneric (f, 2, 512, 7, 4);
+ data_check_template ("tanh.dsc", "tanh.dat");
+
+ tgeneric_template ("tanh.dsc", 2, 512, 7, 4);
test_end ();