summaryrefslogtreecommitdiff
path: root/tests/random.c
Commit message (Collapse)AuthorAgeFilesLines
* New test framework, merged from test branch.thevenyp2014-01-201-0/+111
| | | | 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-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhereenge2011-11-041-9/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-impl.h, random.c: include config.h as first include fileenge2011-11-041-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1111 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* memory.c, random.c: remove internal memory checks since we rely on valgrindenge2011-10-181-9/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1099 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tests/random.c] when using valgrind, disable our own memory checkszimmerma2011-08-311-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1050 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c, mpc-tests.h: made variables staticenge2011-08-301-1/+1
| | | | | | | | 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
* 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
* mpc.m4: added more warning flags for the development cycleenge2010-09-021-1/+1
| | | | | | | tests/: tiny changes to accomodate these flags git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@827 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* explicit casts in test/ to avoid warnings with '-Wconversion'enge2010-08-311-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@824 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced mp_prec_t and mp_exp_p in test directoryenge2010-06-111-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@779 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* added mechanism (copied from GNU MPFR 2.4.1) to check memoryzimmerma2009-11-201-0/+3
| | | | | | | | -> 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
* upgraded version requirement to gmp 4.2 and removed workarounds for olderenge2009-06-041-45/+6
| | | | | | | gmp versions git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@547 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [norm.c] fixed memory leak (found by valgrind)zimmerma2009-04-021-0/+1
| | | | | | | | | | | [inp_str.c] fixed bug report found with -D_FORTIFY_SOURCE=2 (http://lists.gforge.inria.fr/pipermail/mpc-discuss/2009-April/000182.html) [random.c] fixed memory leak (found by valgrind) [Makefile.am] indentation [README.dev] added use of valgrind before doing a release git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@530 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [configure.ac] minimal GMP version is now 4.1.3 instead of 4.2zimmerma2009-03-271-7/+44
| | | | | | | | | [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/random.c: stdio.h is now included by mpc-tests.hthevenyp2009-03-201-1/+0
| | | | | | | | tests/Makefile.am: remove now unused __SRCDIR symbol (since r491-r492, we use the srcdir environment variable). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@493 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* revert to UNIX format (r457 changed every file to DOS format).thevenyp2009-03-171-164/+164
| | | | 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-167/+164
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c: Add new parameter zero_probability to test_default_random in order ↵thevenyp2008-11-071-14/+37
| | | | | | | | | | 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
* tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵thevenyp2008-10-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add void in empty prototype (remove warnings with gcc option ↵thevenyp2008-07-311-2/+2
| | | | | | '-Wold-style-definition'. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Use the new mpc_urandom function in the test suite so that the tests are ↵thevenyp2008-07-101-4/+44
| | | | | | reproducible and sensible to the random seed set with the environment variable GMP_CHECK_RANDOMIZE (revision r153 disabled this behavior). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@159 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Remove use of mpfr global variables mpfr_rands and mpfr_rands_initialized.thevenyp2008-06-251-13/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@153 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add random seed setting (with environmnent variable GMP_CHECK_RANDOMIZE) forthevenyp2008-05-301-0/+102
reproducible tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@147 211d60ee-9f03-0410-a15a-8952a2c7a4e4