summaryrefslogtreecommitdiff
path: root/tests/read_data.c
Commit message (Collapse)AuthorAgeFilesLines
* Move mpc_rnd_mode from read_data.c to print_parameter.c.enge2014-01-211-19/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1421 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* New test framework, merged from test branch.thevenyp2014-01-201-696/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* changed GMP_RND? to MPFR_RND?enge2012-07-231-11/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* rename RNDC to MPC_RND in mpc.henge2012-07-051-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1223 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* read_data.c: english confuses the c++ compiler, speak german insteadenge2012-06-291-19/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1207 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tests/read_data.c] Fix a bug occuring when reallocating temporary buffer.thevenyp2012-06-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [read_data.c] added random tests to check that MPC does not *clear* MPFR flagszimmerma2012-02-291-0/+102
| | | | | | | | | | (some flags might be *set* internally however) [pow.c,exp.c,norm.c,div.c] fix issues with MPFR flags which were cleared but not reset to their initial value [div.dat] updated current result of some commented out failing tests git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1131 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhereenge2011-11-041-30/+30
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tdiv.c, div.dat: moved tests to data fileenge2011-09-011-2/+2
| | | | | | | | exposes a sign bug in mpc_div read_data.c: corrected undocumented assumption on mpfr_signbit git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1064 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* license change:enge2011-08-291-13/+12
| | | | | | | | | | | | LGPLv3+ for code FDLv1.3+ for mpc.texi simple disclaimer for supporting files (README, NEWS, INSTALL) tests/memory.c: replaced by version from mpfr-3.0.1 mpfr.texi: small cleanups; added real authors again, while keeping copyright notice with INRIA git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1027 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* read_data.c: added unhandled case ccs and exit if further non-handledenge2011-02-231-3/+72
| | | | | | | cases are encountered git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@955 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* done two "code clean-up" items during a Nancy-Paris train trip...zimmerma2011-02-091-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@912 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* finished change of copyright line into "Copyright (C) INRIA, year1, year2, ..."zimmerma2011-01-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@891 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* added mpc_fma (request from Mickael Gastineau)zimmerma2011-01-141-1/+96
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@869 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-impl.h and test files: replaced macro OUT by MPC_OUTenge2011-01-131-22/+22
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@867 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* moved declaration of set_pi_over_2 from acos.c/asin.c to header file mpc-impl.henge2010-09-021-1/+1
| | | | | | | added a few key words "static" and "extern" in tests/ git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@828 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* explicit casts in test/ to avoid warnings with '-Wconversion'enge2010-08-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@824 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* code cleanup:enge2010-07-301-1/+1
| | | | | | | | | removed macro MPFR_PREC from mpc-impl.h replaced MPFR_PREC (MPC_RE (op)) by MPC_PREC_RE (op) and MPFR_PREC (MPC_IM (op)) by MPC_PREC_IM (op) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@814 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-test.h, read_data.c: fixed calls of functions with "char *" parameterenge2010-06-171-1/+1
| | | | | | | with a constant string; problem found by g++ git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@787 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* pow_ui.c:enge2010-04-011-4/+74
| | | | | | | | | | | 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
* [read_data.c,tstrtoc.c] patch from Philippe Theveny to fix the line numberzimmerma2009-12-031-9/+15
| | | | | | | in case of error in data_check git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@730 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [read_data.c] following suggestion of Philippe Theveny, added test forzimmerma2009-12-021-22/+50
| | | | | | | | compatibility of given ternary value with rounding mode (and sign of expected result for rounding to zero) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@729 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/mpc-impl.h: Add a C++ iterator on mpfr_rnd_t enum (g++ 4.3.2 refuses to ↵thevenyp2009-07-291-4/+5
| | | | | | | | | | | iterate on enumeration, bug reported by Mickael Gastineau). tests/tgeneric.c: Use prefix iterator ++, iterate between GMP_RNDN and GMP_RND_MAX. tests/read_data.c: Explicit cast of malloc return. NEWS: Fix compilation with g++. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@627 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* read_data.c: Fix bug in reading zeros and infinities signs.thevenyp2009-06-091-3/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@581 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/mem.c tests/read_data.c tests/tstrtoc.c: Code simplification (sizeof ↵thevenyp2009-03-301-2/+1
| | | | | | (char) is always 1). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@519 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/mpc-tests.h tests/read_data.c: factorize code reading data file, and usethevenyp2009-03-201-28/+130
| | | | | | | | environment variable srcdir defined by 'make check'. tests/tstrtoc.c: Simplify using new functions in read_data. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@491 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* strtoc returns -1 upon errorenge2009-03-191-8/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@467 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* revert to UNIX format (r457 changed every file to DOS format).thevenyp2009-03-171-585/+585
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@459 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Modify #include chain so as to support DLL creation on Cygwinthevenyp2009-03-171-586/+585
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/set_str.c: Fix typo.thevenyp2009-02-191-7/+7
| | | | | | | | tests/read_data.c: Fix wrong format specifier for line_number tests/tio_str.c: keep local the check_stdout function. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@417 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* doc/mpc.texi: Add documentation for new functions mpc_set_str and mpc_strtoc.thevenyp2009-02-181-25/+14
| | | | | | | | | | | | | | | | doc/version.texi: Update to february 2009. NEWS src/mpc.h src/Makefile.am: Add new functions mpc_set_str and mpc_strtoc. configure.ac: Check if locale.h exists. src/strtoc.c: new function. src/set_str.c: new function. tests/mpc-tests.h: make public some helper functions from read_data.c. tests/read_data.c: make public some helper functions. tests/Makefile.am: Add tstrtoc.c and tstrtoc.dat. tests/tstrtoc.c: test file for mpc_strtoc. tests/strtoc.dat: data file for mpc_strtoc. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@414 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* default precision removed, as well as init and all init_setenge2009-01-071-8/+8
| | | | | | | combinations git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@408 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [sqrt.c] introduced ternary return value for special, purely realenge2008-12-091-1/+1
| | | | | | | | | and purely imaginary arguments [sqrt.dat] added ternary return value for such arguments [read_data.c] output '?' instead of 'x' for unchecked return value git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@402 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/arg.dat: replaced ? by expected ternary flags.thevenyp2008-12-091-2/+2
| | | | | | | tests/read_data.c: Fix ternary flag comparison in the real case. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@398 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/read_data.c: Fix wrong conversion from inexact value to string.thevenyp2008-12-091-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@394 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* removed V_CC related code, since all functions now return a valueenge2008-12-081-24/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@391 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/read_data.c: now read and optionally check inexact flag.thevenyp2008-12-051-34/+124
| | | | | | | tests/*.dat: add two columns for ternary value. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@383 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* trivial bug found by tccenge2008-12-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@374 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add forgotten initializations.thevenyp2008-11-261-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@352 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* some more EOF handlingenge2008-11-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@347 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* data reading rewritten; implemented look-ahead characterenge2008-11-201-158/+126
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@346 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* - added data files for norm, div, div_fr, fr_div, mul_frenge2008-11-131-154/+76
| | | | | | | | | - debugged some of the corresponding functions - tests/mpc-tests.h: removal of macros - tests/read_data.c: reorganisation of reused code in functions git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@299 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h: Add a new field for function properties to struct mpc_function; ↵thevenyp2008-10-311-0/+23
| | | | | | | | | | add field initialization to macro DECL_XX_FUNC; add a general macro DECL_FUNC replacing DECL_XX_FUNC macros that will be removed; add an identifier FUNC_PROP_SYMETRIC. read_data.c: Use the symetry for CCC functions (halves data set). tadd.c: Declare mpc_add as a symetric function. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@275 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/read_data.c: Fix bugs.thevenyp2008-10-281-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@271 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/read_data.c: Fix bug (now read mpc_rnd_t instead of mp_rnd_t in ↵thevenyp2008-10-211-2/+2
| | | | | | read_ccf and read_cfc) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@265 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵thevenyp2008-10-171-0/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* read_data.c read_data_cc.c: rename read_data since it depends on function ↵thevenyp2008-10-021-296/+0
| | | | | | | | | | | | prototype, fix a bug (sign must always be checked with real non-zero values), add comment with usage explanations. Makefile.am: change filenames. sin sin.dat: add suffix in filename. tsin.c: change data filename. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@222 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* read_data.c: new function data_check to check function result against data ↵thevenyp2008-09-301-0/+296
recorded in a file. Makefile.am: add read_data.c sin: example of data file tsin.c: use data_check with file 'sin'. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@220 211d60ee-9f03-0410-a15a-8952a2c7a4e4