summaryrefslogtreecommitdiff
path: root/tests/terandom.c
Commit message (Collapse)AuthorAgeFilesLines
* Updated the www.gnu.org URL's (http → https) on all the files with:vlefevre2019-01-071-1/+1
| | | | | | | perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13373 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2019 withvlefevre2019-01-011-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2018 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13360 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests]vlefevre2018-02-021-0/+1
| | | | | | | | | | * Replaced calloc + free by tests_allocate + tests_free as usual. * Replaced some fprintf with stderr by printf. * Do bitwise operations in unsigned arithmetic. * Formatting. (merged changesets r12188-12190 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12191 280ebfd0-de03-0410-8827-d642c229c3f4
* Minor date-related changes as in the trunk:vlefevre2018-01-091-1/+1
| | | | | | | | | | * Copyright notice update in most files: added 2018. * tools/ck-mparam: in the copyright notice, just keep the year 2011 since this file is not part of the tarball (just used by mpfrlint). * doc/mpfr.texi: updated the month. (merged changesets r12067-12069 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12077 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed compiler warnings with mini-gmpzimmerma2017-12-051-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11894 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2017 withvlefevre2017-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2016 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11117 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2016-02-041-1/+1
| | | | | | | | Contributed by the AriC and Caramel projects by Contributed by the AriC and Caramba projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9941 280ebfd0-de03-0410-8827-d642c229c3f4
* Cleanup of memory allocation in the tests:vlefevre2016-01-291-7/+2
| | | | | | | | | | | | | | * only tests_allocate, tests_reallocate and tests_free should be used (now exported instead of mpfr_default_allocate, etc.); * this is now mentioned in doc/README.dev; * added checks to tools/mpfrlint (heuristics as usual). Note: This follows the discussion at https://sympa.inria.fr/sympa/arc/mpfr/2015-12/msg00055.html and should solve these problems under MS Windows (mingw32), though this cleanup is more general than an attempt to fix a Windows issue. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9891 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2016 withvlefevre2016-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2015)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2015 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9779 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2015 withvlefevre2015-02-131-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2014)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2014 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9278 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed the need of MPFR_USE_MINI_GMP tests for mpfr_[ne]randomvlefevre2014-07-021-13/+0
| | | | | | | | | functions (source and tests) as mpfr_random_deviate_value no longer needs mpq_t (since r9066). Also removed a static assertion in src/random_deviate.c for the same reason. Note: the change done in r9133 is now really useful! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9135 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/t[ne]random.c] Code clean-up: added !defined(MPFR_USE_MINI_GMP)vlefevre2014-07-021-1/+1
| | | | | | | to protect mpfr_printf. This is actually not needed due to the initial "#ifndef MPFR_USE_MINI_GMP" but this is for a different reason. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9133 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/t[ne]random.c] Reverted the changes done in r9126,9127,9130vlefevre2014-07-021-1/+14
| | | | | | and added a proper comment. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9132 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/t[ne]random.c] Fixed the change done in r9126 and r9127.vlefevre2014-07-021-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9130 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed WANT_MINI_GMP to MPFR_USE_MINI_GMP as it is used in mpfr.hvlefevre2014-07-021-1/+1
| | | | | | | (all MPFR macros that appear there should start with MPFR_ to avoid conflicts with other software). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9129 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/terandom.c] Put the WANT_MINI_GMP test at the right place, likevlefevre2014-07-021-13/+1
| | | | | | what has been done for "tests/tnrandom.c". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9127 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Various fixes for r8753.vlefevre2014-01-171-3/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8759 280ebfd0-de03-0410-8827-d642c229c3f4
* first step towards making MPFR compile with --enable-mini-gmp, so far makezimmerma2014-01-161-0/+8
| | | | | | | succeeds and all tests compile, but many tests fail, will investigate later git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8753 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2014 withvlefevre2014-01-031-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2013)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the tools/mbench directory was not modified). Removed 2013 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8723 280ebfd0-de03-0410-8827-d642c229c3f4
* added tests files for mpfr_nrandom and mpfr_erandomzimmerma2013-05-311-0/+130
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8553 280ebfd0-de03-0410-8827-d642c229c3f4