summaryrefslogtreecommitdiff
path: root/tests/mpc-tests.h
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Support of sin_cos with the new test framework.thevenyp2014-01-221-4/+15
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1422 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* New test framework, merged from test branch.thevenyp2014-01-201-102/+221
| | | | 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-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h, tfma.c, tmul.c: small changes to allow compilation with c++enge2012-07-051-0/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1222 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* configure.ac: reenable warning flagsenge2012-06-281-0/+1
| | | | | | | atan.c, mpc-tests.h; treat warnings git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1204 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* redoing previous task seriouslyenge2012-03-141-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1146 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* solved problems left by r1144 (visibly not tested)zimmerma2012-03-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1145 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h: reorganisation of commentenge2011-11-041-16/+14
| | | | | | | test files: remove inclusion of stdio.h, done via mpc-tests.h git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1116 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* removed inclusion of mpc-impl.h from mpc-tests.h, required to copy some ↵enge2011-11-041-1/+40
| | | | | | lines into the latter git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1114 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc.h. mpc-tests.h, mpc-impl.h: handle __MPC_DECLSPEC as for mpfr;enge2011-11-031-3/+3
| | | | | | | | define as __GMP_DECLSPEC_EXPORT if library is compiled and __GMP_LIBGMP_DLL, as in gmp otherwise git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1109 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h: removed declaration of unused memory functionsenge2011-10-241-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1101 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c, mpc-tests.h: made variables staticenge2011-08-301-3/+0
| | | | | | | | tpow_{s,u}i.c: use global random state tsqr.c: cosmetic change git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1042 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
* mpc-tests.h: remove redundant definition of MPFR_OUTenge2011-02-231-7/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@948 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* done two "code clean-up" items during a Nancy-Paris train trip...zimmerma2011-02-091-3/+13
| | | | 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
* sin_cos: bug fix to allow overlap in argument and resultenge2011-01-181-29/+30
| | | | | | | | | | | previously, there was a problem when computing sin and cos (none of rop_sin and rop_cos being NULL), the arguments were non-finite, purely real or purely imaginary, and op was equal to one of the output values tests: added generic and reuse tests for functions with one input and two outputs, labelled by "cc_c"; in particular, new test file tsin_cos.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@882 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* added mpc_fma (request from Mickael Gastineau)zimmerma2011-01-141-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@869 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-20/+20
| | | | | | | 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
* code cleanup:enge2010-07-301-2/+2
| | | | | | | | | 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-4/+4
| | | | | | | 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
* Remove definition of GMP_RND_MAX in tests, since the corresponding mpfr ↵thevenyp2010-05-031-7/+0
| | | | | | symbol got private in MPFR-3.0. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@760 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* pow_ui.c:enge2010-04-011-1/+1
| | | | | | | | | | | 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
* added mechanism (copied from GNU MPFR 2.4.1) to check memoryzimmerma2009-11-201-0/+2
| | | | | | | | -> found one bug in atan (one variable was init two times) and one problem in tio_str.c (some variables were init before test_start) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@724 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [mpc-tests.h] added macro to prevent multiple inclusion (useful for the Visualzimmerma2009-10-121-0/+5
| | | | | | | Studio build) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@703 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/mpc-tests.h: Use MPFR_RND_MAX instead of GMP_RND_MAX when compiled ↵thevenyp2009-07-291-0/+7
| | | | | | against mpfr-3 (The use of GMP_RND_MAX symbol was introduced in tgeneric.c with revision 627). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@630 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [configure.ac] minimal GMP version is now 4.1.3 instead of 4.2zimmerma2009-03-271-1/+2
| | | | | | | | | [mem.c] new wrapper file for mp_get_memory_functions (not in GMP 4.1.3) [get_str.c,inp_str.c] moved mp_get_memory_functions to mem.c [tests/tset.c,tests/random.c] added wrappers for gmp_random functions (not in GMP 4.1.3) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@509 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/mpc-tests.h tests/read_data.c: factorize code reading data file, and usethevenyp2009-03-201-5/+13
| | | | | | | | 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-0/+5
| | | | 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-168/+168
| | | | 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-170/+168
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* doc/mpc.texi: Add documentation for new functions mpc_set_str and mpc_strtoc.thevenyp2009-02-181-1/+22
| | | | | | | | | | | | | | | | 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
* removed V_CC related code, since all functions now return a valueenge2008-12-081-18/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@391 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/mpc-tests.h: declare global random seed variables as extern (they are ↵thevenyp2008-11-191-2/+2
| | | | | | defined and set in random.c). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@342 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* - added data files for norm, div, div_fr, fr_div, mul_frenge2008-11-131-76/+1
| | | | | | | | | - 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
* tests/mpc-tests.h, tests/tgeneric.c: Add new fonction type CCI for mpc_mul_i.thevenyp2008-11-071-0/+3
| | | | | | | | tests/tmul_i.c: test file for mpc_mul_i. tests/Makefile.am: add tmul_i. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@283 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c: Add new parameter zero_probability to test_default_random in order ↵thevenyp2008-11-071-1/+1
| | | | | | | | | | to provide a probability of zero in one number's part independently to number precision. Change also neg_number_p boolean parameter to negative_probability. mpc-tests.h: Change prototype of test_default_random. tmul.c, tlog.c, tgeneric.c: Change calls to test_default_random. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@282 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h: Add a new field for function properties to struct mpc_function; ↵thevenyp2008-10-311-10/+38
| | | | | | | | | | 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/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵thevenyp2008-10-171-0/+202
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