summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-05 09:15:58 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-05 09:15:58 +0000
commit119e389660b9d5d9d9e05a49df08cbcae0011946 (patch)
treec922d8ca3d54ff64ea5e24cfb8dbd986bc006a36 /tests
parent47dc25b9ec0c8b8583339a51eaa50b81fc5bfa87 (diff)
downloadmpc-119e389660b9d5d9d9e05a49df08cbcae0011946.tar.gz
new functions mul_2si, div_2si
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1226 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am7
-rw-r--r--tests/tdiv_2si.c35
-rw-r--r--tests/tdiv_2ui.c2
-rw-r--r--tests/tmul_2si.c35
-rw-r--r--tests/tmul_2ui.c2
5 files changed, 76 insertions, 5 deletions
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