summaryrefslogtreecommitdiff
path: root/tests/tmul.c
Commit message (Collapse)AuthorAgeFilesLines
* replaced MPFR 4.0.3 (which does not exist) by MPFR 4.1.0Paul Zimmermann2020-07-241-1/+1
|
* Add copyright dates.Andreas Enge2020-07-231-1/+1
| | | | | | | * src/acos.c, src/atan.c, src/div.c, src/dot.c, src/exp.c, src/get_x.c, src/mpc-impl.h, src/sin_cos.c, src/sqrt.c, tests/mpc-tests.h, tests/tdiv.c, tests/tdot.c, tests/tmul.c, tests/tsqrt.c, tests/ttan.c: Add years to copyright notice.
* added test for bug in mpfr_fmms (fixed in MPFR revision 13688)Paul Zimmermann2020-02-061-0/+29
|
* New test framework, merged from test branch.Philippe Theveny2014-01-201-6/+16
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* changed GMP_RND? to MPFR_RND?Andreas Enge2012-07-231-8/+8
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* rename RNDC to MPC_RND in mpc.hAndreas Enge2012-07-051-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1223 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-tests.h, tfma.c, tmul.c: small changes to allow compilation with c++Andreas Enge2012-07-051-2/+2
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1222 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tmul.c: shortened test output using more recent macrosAndreas Enge2012-06-261-35/+19
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1169 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhereAndreas Enge2011-11-041-8/+8
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* license change:Andreas Enge2011-08-291-12/+11
| | | | | | | | | | | | 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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1027 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mul.c: mpc_mul_naive now assumes that all numbers have only non-zero (andAndreas Enge2011-02-231-8/+4
| | | | | | | | finite) parts; add assertion tmul.c: disable comparison between naive and Karatsuba with zero parts git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@950 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tmul.c: reverted modification made for debugging and inadvertently checked inAndreas Enge2011-02-151-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@924 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tmul.c, mul.dat: moved bug case to data fileAndreas Enge2011-02-151-26/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@922 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tmul.c] added bug found by Emmanuel Thome (infinite loop)Paul Zimmermann2011-02-141-0/+26
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@920 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* done two "code clean-up" items during a Nancy-Paris train trip...Paul Zimmermann2011-02-091-2/+2
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@912 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* finished change of copyright line into "Copyright (C) INRIA, year1, year2, ..."Paul Zimmermann2011-01-251-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@891 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tmul.c: moved special values to mul.datAndreas Enge2010-09-021-33/+0
| | | | | | | memory.c: included mpc-tests.h to avoid warning for undeclared prototype git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@830 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* explicit casts in test/ to avoid warnings with '-Wconversion'Andreas Enge2010-08-311-2/+2
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@824 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced mp_prec_t and mp_exp_p in test directoryAndreas Enge2010-06-111-2/+2
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@779 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Modify #include chain so as to support DLL creation on CygwinPhilippe Theveny2009-03-171-2/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* default precision removed, as well as init and all init_setAndreas Enge2009-01-071-9/+6
| | | | | | | combinations git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@408 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: Reduce exponent range for random number and increase maximum ↵Philippe Theveny2008-11-141-1/+1
| | | | | | | | | precision so that tgeneric (and reuse) triggers karatsuba multiplication method. tests/mul.dat: Add a value with big precision so that multiplication is done with karatsuba method. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@313 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [mul.c] fixed bug found by Philippe (20081114)Paul Zimmermann2008-11-141-0/+5
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@312 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: Add bug for wrong inexact value returned by mpc_mul_karatsuba.Philippe Theveny2008-11-141-2/+12
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@307 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c: Add new parameter zero_probability to test_default_random in order ↵Philippe Theveny2008-11-071-4/+4
| | | | | | | | | | 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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@282 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.dat: Remove unused file.Philippe Theveny2008-10-311-1/+4
| | | | | | | | | | tests/mul.dat: Add data set file for mpc_mul. tests/tmul.c: Use mul.dat data file and declare mpc_mul as symetric. tests/Makefile.am: Add mul.dat. src/mul.c: Change multiplication of infinities and some signs of zero parts in results accordingly to the ISO C99 standard. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@276 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵Philippe Theveny2008-10-171-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@258 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: update comments according to changes done in r212.Philippe Theveny2008-09-261-7/+0
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@213 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: remove from function cmpmul the tests now done in tgeneric.Philippe Theveny2008-09-261-92/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@212 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: remove unused variable.Philippe Theveny2008-09-251-1/+0
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@204 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Update changes dates and authors in copyright line.Philippe Theveny2008-09-241-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@202 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: Speed up test while increasing exponent range.Philippe Theveny2008-09-241-10/+7
| | | | | | | tests/tdiv.c: Speed up test. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@191 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c: random tests for complex functions of two complex ↵Philippe Theveny2008-09-231-169/+56
| | | | | | | | | | | variable and tests for parameter reuse. tests/Makefile.am: add tgeneric_ccc.c to EXTRA_DIST tests/tdiv.c tests/tadd.c tests/tsub.c tests/tmul.c: use tgeneric_ccc.c git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@188 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add void in empty prototype (remove warnings with gcc option ↵Philippe Theveny2008-07-311-3/+3
| | | | | | '-Wold-style-definition'. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Use the new mpc_urandom function in the test suite so that the tests are ↵Philippe Theveny2008-07-101-6/+0
| | | | | | reproducible and sensible to the random seed set with the environment variable GMP_CHECK_RANDOMIZE (revision r153 disabled this behavior). git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@159 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add random seed setting (with environmnent variable GMP_CHECK_RANDOMIZE) forPhilippe Theveny2008-05-301-0/+6
| | | | | | | reproducible tests. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@147 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* eliminated comparisons between signed and unsignedAndreas Enge2008-04-111-3/+3
| | | | | | | mainly by casting precisions (unsigned) to mp_exp_t (signed) git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@105 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Cosmetic changes: no tab, no trailing white spaces, and new indentation.Philippe Theveny2008-04-101-157/+157
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@93 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* File reorganisation into three new directories: src, tests and doc.Philippe Theveny2008-04-091-0/+460
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@82 211d60ee-9f03-0410-a15a-8952a2c7a4e4