summaryrefslogtreecommitdiff
path: root/tests/pow_ui.dat
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-04-01 16:12:49 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-04-01 16:12:49 +0000
commit6308d97dd767efaa43e8b48dc8642005c817d44e (patch)
treee665d2d9be5d5b964b9c5108168e4611d9f30d12 /tests/pow_ui.dat
parentc4c5d3fd54b6ad717f44cd50134e6ed257d629c0 (diff)
downloadmpc-6308d97dd767efaa43e8b48dc8642005c817d44e.tar.gz
pow_ui.c:
cases of over-/underflow delegated to mpc_pow pow_ui.dat, read_data.c, tpow_ui.c: added test file tests/Makefile.am: temporarily moved test of pow_ui to the front git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@752 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/pow_ui.dat')
-rw-r--r--tests/pow_ui.dat93
1 files changed, 93 insertions, 0 deletions
diff --git a/tests/pow_ui.dat b/tests/pow_ui.dat
new file mode 100644
index 0000000..be8c369
--- /dev/null
+++ b/tests/pow_ui.dat
@@ -0,0 +1,93 @@
+# Data file for mpc_pow_ui.
+#
+# Copyright (C) 2010 Andreas Enge
+#
+# This file is part of the MPC Library.
+#
+# The MPC Library 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 2.1 of the License, or (at your
+# option) any later version.
+#
+# The MPC Library 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 the MPC Library; see the file COPYING.LIB. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+# MA 02111-1307, USA.
+#
+# The line format respects the parameter order in function prototype as
+# follow:
+#
+# INEX_RE INEX_IM PREC_ROP_RE ROP_RE PREC_ROP_IM ROP_IM PREC_OP1_RE OP1_RE PREC_OP1_IM OP1_IM OP2 RND_RE RND_IM
+#
+# For further details, see add_fr.dat.
+
+# special cases, copied from pow.dat
+0 0 53 +1 53 0 53 nan 53 +0 +0 N N
+0 0 53 nan 53 nan 53 nan 53 +0 +1 N N
+0 0 53 inf 53 nan 53 +inf 53 +0 +1 N N
+0 0 53 +inf 53 nan 53 +inf 53 +1 +1 N N
+0 0 53 +inf 53 nan 53 +inf 53 -1 +1 N N
+0 0 53 +inf 53 nan 53 -inf 53 +0 +1 N N
+0 0 53 +inf 53 nan 53 -inf 53 +1 +1 N N
+0 0 53 +inf 53 nan 53 -inf 53 -1 +1 N N
+
+0 0 53 nan 53 nan 53 +0 53 +0 +0 N N
+0 0 53 0 53 0 53 +0 53 +0 +1 N N
+
+0 0 53 +1 53 +0 53 +0 53 +1 +0 N N
+0 0 53 +1 53 -0 53 +0 53 +1 +0 N D
+0 0 53 +1 53 +0 53 -0 53 +1 +0 N N
+0 0 53 +1 53 +0 53 -1 53 +0 +0 N N
+0 0 53 +1 53 -0 53 -1 53 -0 +0 N N
+0 0 53 +1 53 -0 53 -0 53 -1 +0 N N
+0 0 53 +1 53 -0 53 +0 53 -1 +0 N N
+
+0 0 53 +1 53 +0 53 +inf 53 +2 +0 N N
+0 0 53 +1 53 +0 53 +inf 53 -0 +0 N N
+0 0 53 +1 53 +0 53 +2 53 +inf +0 N N
+0 0 53 +1 53 +0 53 +2 53 +0 +0 N N
+0 0 53 +1 53 +0 53 +0 53 +2 +0 N N
+0 0 53 +1 53 +0 53 +0 53 +inf +0 N N
+0 0 53 +1 53 +0 53 -0 53 +2 +0 N N
+0 0 53 +1 53 +0 53 -0 53 +inf +0 N N
+0 0 53 +1 53 +0 53 -5 53 +inf +0 N N
+0 0 53 +1 53 +0 53 -2 53 +0 +0 N N
+0 0 53 +1 53 +0 53 -inf 53 +0 +0 N N
+0 0 53 +1 53 +0 53 -inf 53 +3 +0 N N
+0 0 53 +1 53 -0 53 +0.5 53 -0.5 +0 N N
+0 0 53 +1 53 -0 53 +0.5 53 +0 +0 N N
+0 0 53 +1 53 -0 53 +0.5 53 -0 +0 N N
+0 0 53 +1 53 -0 53 -0.5 53 -0 +0 N N
+0 0 53 +1 53 -0 53 +0 53 -0.5 +0 N N
+0 0 53 +1 53 -0 53 -0 53 -0.5 +0 N N
+0 0 53 +9 53 +0 53 +3 53 +0 +2 N N
+0 0 53 +1 53 +0 53 +1 53 +0 +4 N N
+0 0 53 +1 53 -0 53 +1 53 -0 +4 N N
+0 0 53 0.25 53 -0 53 +0.5 53 -0 +2 N N
+
+0 0 53 1 53 0 53 +2 53 -1 +0 N N
+0 0 53 1 53 0 53 -2 53 -1 +0 N N
+0 0 53 1 53 0 53 -2 53 -0 +0 N N
+0 0 53 1 53 0 53 +0.5 53 +0.5 +0 N N
+0 0 53 1 53 0 53 -0.5 53 +0.5 +0 N N
+0 0 53 1 53 0 53 -0.5 53 +0 +0 N N
+0 0 53 1 53 0 53 +0 53 +0.5 +0 N N
+0 0 53 1 53 0 53 -0 53 +0.5 +0 N N
+0 0 53 1 53 0 53 -0 53 -4 +0 N N
+0 0 53 1 53 0 53 +0 53 -4 +0 N N
+0 0 53 1 53 0 53 -1 53 -0 +0 N N
+0 0 53 1 53 0 53 -1 53 +0 +0 N N
+
+0 0 53 4 53 0 53 +2 53 -0 +2 N N
+0 0 53 1 53 0 53 +1 53 +0 +2 N N
+0 0 53 1 53 0 53 +1 53 -0 +2 N N
+
+# overflow
+? ? 53 +inf 53 +inf 53 1e100000000 53 1e100000000 1000000000 N N
+# underflow
+? ? 53 0 53 0 53 1e-100000000 53 1e-100000000 1000000000 N N