diff options
Diffstat (limited to 'tests/tui_div.c')
-rw-r--r-- | tests/tui_div.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/tui_div.c b/tests/tui_div.c index 40c740a..f63711a 100644 --- a/tests/tui_div.c +++ b/tests/tui_div.c @@ -1,6 +1,6 @@ /* tui_div -- test file for mpc_ui_div. -Copyright (C) 2008, 2011, 2012 INRIA +Copyright (C) 2008, 2011, 2012, 2013 INRIA This file is part of GNU MPC. @@ -21,7 +21,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #include "mpc-tests.h" static void -special (void) +test_special (void) { mpc_t a, b; @@ -85,16 +85,21 @@ special (void) mpc_clear (b); } +#define MPC_FUNCTION_CALL \ + P[0].mpc_inex = mpc_ui_div (P[1].mpc, P[2].ui, P[3].mpc, P[4].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP2 \ + P[0].mpc_inex = mpc_ui_div (P[1].mpc, P[2].ui, P[1].mpc, P[4].mpc_rnd) + +#include "tgeneric.tpl" + int main (void) { - DECL_FUNC (CUC, f, mpc_ui_div); - test_start (); - special (); + test_special (); - tgeneric (f, 2, 1024, 7, 4096); + tgeneric_template ("ui_div.dsc", 2, 1024, 7, 4096); test_end (); |