summaryrefslogtreecommitdiff
path: root/tests/tlog_ui.c
Commit message (Collapse)AuthorAgeFilesLines
* Copyright notice update: added 2021 withvlefevre2021-01-031-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2020)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2020 from the example in the doc/README.dev file. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14229 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2020 withvlefevre2020-01-081-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2019)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2019 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13652 280ebfd0-de03-0410-8827-d642c229c3f4
* 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/trunk@13372 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/trunk@13359 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ck-mparam and timings-mpfr.c files and the mbench directory under "tools" (not distributed with MPFR). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12067 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
* [tests/tlog_ui.c] Improved a test function.vlefevre2016-05-241-3/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10365 280ebfd0-de03-0410-8827-d642c229c3f4
* added generic tests for mpfr_log_ui + compare with mpfr_logzimmerma2016-05-241-2/+31
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10359 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
* [tests/tlog_ui.c] Added tests for n around ULONG_MAX/3.vlefevre2016-01-151-4/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9818 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c] Added tests for n around LONG_MAX.vlefevre2016-01-151-3/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9813 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c]vlefevre2016-01-151-13/+21
| | | | | | | | | | | | | | | | | | * In the loop, do not test n = 0 and n = 1, because mpfr_can_round always fails for these values, so that the test is pointless. * Check that mpfr_can_round no longer fails (this is possible as we are not doing random tests, i.e. the tested values are known); the additional precision for y had to be increased. * Also test large values of n (ULONG_MAX down to ULONG_MAX-19). When GCC's run-time sanitizer -fsanitize=undefined -fno-sanitize-recover is used, it signals an error for large values of n. * The reference values y are obtained with mpfr_log instead of mpfr_log_ui: indeed we need a different implementation from the tested function, otherwise only the rounding is tested! Without GCC's run-time sanitizer, this shows that mpfr_log_ui is buggy for large values of n. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9810 280ebfd0-de03-0410-8827-d642c229c3f4
* added new function mpfr_log_uizimmerma2016-01-141-0/+157
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9802 280ebfd0-de03-0410-8827-d642c229c3f4