diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-10-17 14:50:27 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-10-17 14:50:27 +0000 |
commit | d5a3ca63260b399f31fb5e4b40b8ea542e1d6c94 (patch) | |
tree | fdfe342392f733c02852de04737c9281cf9c1967 /tests/abs.dat | |
parent | d9b9bbac92266eb7fe10f6bd8348ad318a68a980 (diff) | |
download | mpc-d5a3ca63260b399f31fb5e4b40b8ea542e1d6c94.tar.gz |
tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, tests/tgeneric_cc.c, tests/tgeneric_cfc.c, tests/tgeneric_cuuc.c, tests/tgeneric_fc.c, tests/tgeneric_ccf.c, tests/tgeneric_cuc.c: code moved into test/tgeneric.c.
tests/read_data_cc.c: code moved into tests/read_data.c.
tests/mpc-tests.h: helper test function are in this new library
tests/tgeneric.c: generic are reuse tests for all function prototypes used in MPC.
tests/read_data.c: read data in a file.
tests/comparisons.c: comparaison function working also with special values
tests/random.c: functions become public
tests/tsub_ui.c: use new libmpc-tests
tests/tconj.c: use new libmpc-tests
tests/tmul_ui.c: use new libmpc-tests
tests/tmul_2exp.c: use new libmpc-tests
tests/texp.c: use new libmpc-tests
tests/tsinh.c: use new libmpc-tests
tests/tneg.c: use new libmpc-tests
tests/tui_div.c: use new libmpc-tests
tests/tsub_fr.c: use new libmpc-tests
tests/tdiv_2exp.c: use new libmpc-tests
tests/tmul_fr.c: use new libmpc-tests
tests/tadd_ui.c: use new libmpc-tests
tests/tsqrt.c: use new libmpc-tests
tests/ttanh.c: use new libmpc-tests
tests/tfr_div.c: use new libmpc-tests
tests/tnorm.c: use new libmpc-tests
tests/tadd_fr.c: use new libmpc-tests
tests/tfr_sub.c: use new libmpc-tests
tests/tui_ui_sub.c: use new libmpc-tests
tests/tmul_si.c: use new libmpc-tests
tests/tdiv_ui.c: use new libmpc-tests
tests/tlog.c: use new libmpc-tests
tests/tdiv.c: use new libmpc-tests
tests/ttan.c: use new libmpc-tests
tests/tcos.c: use new libmpc-tests
tests/tadd.c: use new libmpc-tests
tests/tsin.c: use new libmpc-tests
tests/tsub.c: use new libmpc-tests
tests/tcosh.c: use new libmpc-tests
tests/tmul.c: use new libmpc-tests
tests/tabs.c: use new libmpc-tests
tests/tsqr.c: use new libmpc-tests
tests/tdiv_fr.c: use new libmpc-tests
tests/tui_sub.c: removed because mpc_ui_sub is a macro.
tests/abs.dat: new test file for mpc_abs.
tests/Makefile.am: record previous changes.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@258 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/abs.dat')
-rw-r--r-- | tests/abs.dat | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/abs.dat b/tests/abs.dat new file mode 100644 index 0000000..6ee6bbf --- /dev/null +++ b/tests/abs.dat @@ -0,0 +1,80 @@ +# Data file for mpc_abs. +# +# 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 ROP PREC_ROP_IM ROP_IM PREC_OP_RE OP_RE PREC_OP_IM OP_IM RND +# +# where op = op_re + i * op_im, +# rop is ROP rounded to nearest to the precision of PREC_ROP +# op_re is OP_RE rounded to nearest to the precision of PREC_OP_RE +# op_im is OP_IM rounded to nearest to the precision of PREC_OP_IM +# ROP is checked against abs(op) rounded to the precision PREC_ROP +# in the direction RND +# 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 N +53 +inf 53 -inf 53 -1 N +53 +inf 53 -inf 53 -0 N +53 +inf 53 -inf 53 +0 N +53 +inf 53 -inf 53 +1 N +53 +inf 53 -inf 53 +inf N +53 +inf 53 -inf 53 nan N +53 +inf 53 -1 53 -inf N +53 +inf 53 -1 53 +inf N +53 nan 53 -1 53 nan N +53 +inf 53 -0 53 -inf N +53 +0 53 -0 53 -0 N +53 +0 53 -0 53 +0 N +53 +inf 53 -0 53 +inf N +53 nan 53 -0 53 nan N +53 +inf 53 +0 53 -inf N +53 +0 53 +0 53 -0 N +53 +0 53 +0 53 +0 N +53 +inf 53 +0 53 +inf N +53 nan 53 +0 53 nan N +53 +inf 53 +1 53 -inf N +53 +inf 53 +1 53 +inf N +53 nan 53 +1 53 nan N +53 +inf 53 +inf 53 -inf N +53 +inf 53 +inf 53 -1 N +53 +inf 53 +inf 53 -0 N +53 +inf 53 +inf 53 +0 N +53 +inf 53 +inf 53 +1 N +53 +inf 53 +inf 53 +inf N +53 +inf 53 +inf 53 nan N +53 +inf 53 nan 53 -inf N +53 nan 53 nan 53 -1 N +53 nan 53 nan 53 -0 N +53 nan 53 nan 53 +0 N +53 nan 53 nan 53 +1 N +53 +inf 53 nan 53 +inf N +53 nan 53 nan 53 nan N |