diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-10-28 13:40:15 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-10-28 13:40:15 +0000 |
commit | 8e1220d5a340f0f5d2573ba5d339611fd83ddde0 (patch) | |
tree | 6eff2766377cf3dfcbb0c7a81a1ce8feadc2f5a4 /tests/add_fr.dat | |
parent | 63f699a185cc5a8b6271e72950824d487b6b5039 (diff) | |
download | mpc-8e1220d5a340f0f5d2573ba5d339611fd83ddde0.tar.gz |
Makefile.am, add_fr.dat, tadd_fr.c: Add data set for mpc_add_fr.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@272 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/add_fr.dat')
-rw-r--r-- | tests/add_fr.dat | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/tests/add_fr.dat b/tests/add_fr.dat new file mode 100644 index 0000000..9e6ddad --- /dev/null +++ b/tests/add_fr.dat @@ -0,0 +1,112 @@ +# Data file for mpc_add_fr. +# +# Copyright (C) 2008 Philippe Th\'eveny +# +# 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: +# +# PREC_ROP_RE ROP_RE PREC_ROP_IM ROP_IM PREC_OP1_RE OP1_RE PREC_OP1_IM OP1_IM PREC_OP2 OP2 RND_RE RND_IM +# +# where op1 = op1_re + i * op1_im, rop = rop_re + i * rop_im, +# The data are read from the file and stored in variables op1, op2, rop using +# rounding to nearest when needed, for instance: rop_re is ROP_RE rounded to +# nearest to the precision of PREC_ROP_RE. +# ROP_RE is checked against Re(op1 + op2) rounded to the precision PREC_ROP_RE +# in the direction RND_RE +# ROP_IM is checked against Im(op1) rounded to the precision PREC_ROP_IM +# in the direction RND_IM +# rounding modes notation: +# "N" is rounding to nearest +# "Z" is rounding towards zero +# "U" is rounding towards plus infinity +# "D" is rounding towards minus infinity +# Use prefixes "0b" for values in base two, "0x" for values in base sixteen, +# no prefix for value in base ten. +# In all bases, "nan" is NaN, "inf" is infinity; +# The sign of the result is checked with "+inf", "-inf", "-0", or "+0". + +# special values (following ISO C99 standard) +53 -inf 53 -inf 53 -inf 53 -inf 53 -inf N Z +53 -inf 53 +inf 53 -inf 53 +inf 53 -1 Z U +53 -inf 53 -0 53 -inf 53 -0 53 -0 U D +53 -inf 53 +0 53 -inf 53 +0 53 +0 D N +53 -inf 53 -1 53 -inf 53 -1 53 +1 N U +53 nan 53 +1 53 -inf 53 +1 53 +inf Z D +53 nan 53 nan 53 -inf 53 nan 53 nan U N + +53 -inf 53 +inf 53 -1 53 +inf 53 -inf N Z +53 -2 53 -0 53 -1 53 -0 53 -1 Z U +53 -1 53 +0 53 -1 53 +0 53 -0 U D +53 -1 53 -1 53 -1 53 -1 53 +0 D N +53 +0 53 +1 53 -1 53 +1 53 +1 N U +53 +inf 53 nan 53 -1 53 nan 53 +inf Z D +53 nan 53 -inf 53 -1 53 -inf 53 nan U N + +53 -inf 53 -0 53 -0 53 -0 53 -inf N Z +53 -1 53 +0 53 -0 53 +0 53 -1 Z U +53 -0 53 -1 53 -0 53 -1 53 -0 U D +53 -0 53 +1 53 -0 53 +1 53 +0 D N +53 +1 53 nan 53 -0 53 nan 53 +1 N U +53 +inf 53 -inf 53 -0 53 -inf 53 +inf Z D +53 nan 53 +inf 53 -0 53 +inf 53 nan U N + +53 -inf 53 +0 53 +0 53 +0 53 -inf N Z +53 -1 53 -1 53 +0 53 -1 53 -1 Z U +53 +0 53 +1 53 +0 53 +1 53 -0 U D +53 +0 53 nan 53 +0 53 nan 53 +0 D N +53 +1 53 -inf 53 +0 53 -inf 53 +1 N U +53 +inf 53 +inf 53 +0 53 +inf 53 +inf Z D +53 nan 53 -0 53 +0 53 -0 53 nan U N + +53 -inf 53 -1 53 +1 53 -1 53 -inf N Z +53 +0 53 +1 53 +1 53 +1 53 -1 Z U +53 +1 53 nan 53 +1 53 nan 53 -0 U D +53 +1 53 -inf 53 +1 53 -inf 53 +0 D N +53 +2 53 +inf 53 +1 53 +inf 53 +1 N U +53 +inf 53 -0 53 +1 53 -0 53 +inf Z D +53 nan 53 +0 53 +1 53 +0 53 nan U N + +53 nan 53 +1 53 +inf 53 +1 53 -inf N Z +53 +inf 53 nan 53 +inf 53 nan 53 -1 Z U +53 +inf 53 -inf 53 +inf 53 -inf 53 -0 U D +53 +inf 53 +inf 53 +inf 53 +inf 53 +0 D N +53 +inf 53 -0 53 +inf 53 -0 53 +1 N U +53 +inf 53 +0 53 +inf 53 +0 53 +inf Z D +53 nan 53 -1 53 +inf 53 -1 53 nan U N + +53 nan 53 nan 53 nan 53 nan 53 -inf N Z +53 nan 53 -inf 53 nan 53 -inf 53 -1 Z U +53 nan 53 +inf 53 nan 53 +inf 53 -0 U D +53 nan 53 -0 53 nan 53 -0 53 +0 D N +53 nan 53 +0 53 nan 53 +0 53 +1 N U +53 nan 53 -1 53 nan 53 -1 53 +inf Z D +53 nan 53 +1 53 nan 53 +1 53 nan U N + +# pure real argument +53 0x10000000000001p-52 53 -0 53 +1 53 -0 53 0x10000000000001p-105 N N +53 0x10000000000000p-52 53 -0 53 +1 53 -0 53 0x10000000000001p-105 Z Z +53 0x10000000000001p-52 53 -0 53 +1 53 -0 53 0x10000000000001p-105 U U +53 0x10000000000000p-52 53 -0 53 +1 53 -0 53 0x10000000000001p-105 D D + +# pure imaginary argument +53 +1 53 +1 53 -0 53 1 53 +1 N N +53 +1 53 +1 53 +0 53 1 53 +1 Z Z +53 +1 53 +1 53 +0 53 1 53 +1 U U +53 +1 53 +1 53 -0 53 1 53 +1 D D |