From 119e389660b9d5d9d9e05a49df08cbcae0011946 Mon Sep 17 00:00:00 2001 From: enge Date: Thu, 5 Jul 2012 09:15:58 +0000 Subject: new functions mul_2si, div_2si git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1226 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- tests/Makefile.am | 7 ++++--- tests/tdiv_2si.c | 35 +++++++++++++++++++++++++++++++++++ tests/tdiv_2ui.c | 2 +- tests/tmul_2si.c | 35 +++++++++++++++++++++++++++++++++++ tests/tmul_2ui.c | 2 +- 5 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 tests/tdiv_2si.c create mode 100644 tests/tmul_2si.c (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 72ea589..8f193ed 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -28,9 +28,10 @@ AM_LDFLAGS = -no-install LOADLIBES=$(DEFS) -I$(top_srcdir)/src -I$(top_builddir) $(CPPFLAGS) $(CFLAGS) -L$(top_builddir)/tests/.libs -lmpc-tests -lmpc -lm $(LIBS) check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui targ tasin \ -tasinh tatan tatanh tconj tcos tcosh tdiv tdiv_2ui tdiv_fr tdiv_ui texp tfma \ -tfr_div tfr_sub timag tio_str tlog tlog10 tmul tmul_2ui tmul_fr tmul_i \ -tmul_si tmul_ui tneg tnorm tpow tpow_ld tpow_d tpow_fr tpow_si tpow_ui tpow_z \ +tasinh tatan tatanh tconj tcos tcosh tdiv tdiv_2si tdiv_2ui tdiv_fr tdiv_ui \ +texp tfma tfr_div tfr_sub timag tio_str tlog tlog10 \ +tmul tmul_2ui tmul_2ui tmul_fr tmul_i tmul_si tmul_ui \ +tneg tnorm tpow tpow_ld tpow_d tpow_fr tpow_si tpow_ui tpow_z \ tprec tproj treal treimref tset tsin tsin_cos tsinh tsqr tsqrt tstrtoc tsub \ tsub_fr tsub_ui tswap ttan ttanh tui_div tui_ui_sub tget_version diff --git a/tests/tdiv_2si.c b/tests/tdiv_2si.c new file mode 100644 index 0000000..5046201 --- /dev/null +++ b/tests/tdiv_2si.c @@ -0,0 +1,35 @@ +/* tdiv_2si -- test file for mpc_div_2si. + +Copyright (C) 2012 INRIA + +This file is part of GNU MPC. + +GNU MPC is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for +more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see http://www.gnu.org/licenses/ . +*/ + +#include "mpc-tests.h" + +int +main (void) +{ + DECL_FUNC (CCS, f, mpc_div_2si); + + test_start (); + + tgeneric (f, 2, 1024, 7, -1); + + test_end (); + + return 0; +} diff --git a/tests/tdiv_2ui.c b/tests/tdiv_2ui.c index 3a36ebd..6cc8f14 100644 --- a/tests/tdiv_2ui.c +++ b/tests/tdiv_2ui.c @@ -1,4 +1,4 @@ -/* tdiv_2exp -- test file for mpc_div_2exp. +/* tdiv_2ui -- test file for mpc_div_2ui. Copyright (C) 2008, 2012 INRIA diff --git a/tests/tmul_2si.c b/tests/tmul_2si.c new file mode 100644 index 0000000..bf86f18 --- /dev/null +++ b/tests/tmul_2si.c @@ -0,0 +1,35 @@ +/* tmul_2si -- test file for mpc_mul_2si. + +Copyright (C) 2012 INRIA + +This file is part of GNU MPC. + +GNU MPC is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for +more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see http://www.gnu.org/licenses/ . +*/ + +#include "mpc-tests.h" + +int +main (void) +{ + DECL_FUNC (CCS, f, mpc_mul_2si); + + test_start (); + + tgeneric (f, 2, 1024, 7, -1); + + test_end (); + + return 0; +} diff --git a/tests/tmul_2ui.c b/tests/tmul_2ui.c index 7f6ec48..97073db 100644 --- a/tests/tmul_2ui.c +++ b/tests/tmul_2ui.c @@ -1,4 +1,4 @@ -/* tmul_2exp -- test file for mpc_mul_2exp. +/* tmul_2ui -- test file for mpc_mul_2ui. Copyright (C) 2008, 2012 INRIA -- cgit v1.2.1