summaryrefslogtreecommitdiff
path: root/tests/tadd_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tadd_ui.c')
-rw-r--r--tests/tadd_ui.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c
index 4f8efea..a62979d 100644
--- a/tests/tadd_ui.c
+++ b/tests/tadd_ui.c
@@ -1,6 +1,6 @@
/* tadd_ui -- test file for mpc_add_ui.
-Copyright (C) 2008, 2010, 2012 INRIA
+Copyright (C) 2008, 2010, 2012, 2013 INRIA
This file is part of GNU MPC.
@@ -52,15 +52,21 @@ check_ternary_value (void)
mpc_clear (z);
}
+#define MPC_FUNCTION_CALL \
+ P[0].mpc_inex = mpc_add_ui (P[1].mpc, P[2].mpc, P[3].ui, P[4].mpc_rnd)
+#define MPC_FUNCTION_CALL_REUSE_OP1 \
+ P[0].mpc_inex = mpc_add_ui (P[1].mpc, P[1].mpc, P[3].ui, P[4].mpc_rnd)
+
+#include "tgeneric.tpl"
+
int
main (void)
{
- DECL_FUNC (CCU, f, mpc_add_ui);
-
test_start ();
check_ternary_value ();
- tgeneric (f, 2, 1024, 7, -1);
+
+ tgeneric_template ("add_ui.dsc", 2, 1024, 1, 1024);
test_end ();