summaryrefslogtreecommitdiff
path: root/tests/tget_set_d64.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
* [tests/tget_set_d64.c] Fixed missing "#if _MPFR_IEEE_FLOATS" thatvlefevre2020-04-111-2/+3
| | | | | | | | became visible with r13878 now that the encoding of decimal floats can be detected at compile time. But by fixing the defined macros manually, this issue could be visible before r13878. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13879 280ebfd0-de03-0410-8827-d642c229c3f4
* Reworked decimal support and detection, resolving FIXMEs.vlefevre2020-04-101-6/+6
| | | | | | | | | | | | | | | * INSTALL, acinclude.m4, configure.ac: --enable-decimal-float can take new values. Change of macro DPD_FORMAT (DPD was assumed in case of cross-compilation, which could be wrong) to 3 new macros: DECIMAL_DPD_FORMAT, DECIMAL_BID_FORMAT, DECIMAL_GENERIC_CODE. * doc/README.dev: documented these 3 new macros. * src/mpfr-impl.h: the detection of the BID encoding can now be done at compile time when GCC defines __DECIMAL_BID_FORMAT__ (as on x86); support of the 3 new macros. * src/{get_d64.c,set_d64.c,set_d128.c}: update. * tests/{tget_set_d64.c,tget_set_d128.c,tversion.c}: update. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13878 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_{d64,d128}.c] Added a FIXME and improved a message.vlefevre2020-03-121-2/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13779 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
* [tests/tget_set_d64.c] Updated comment (only the x86 and x86_64 targetsvlefevre2019-07-231-5/+6
| | | | | | are affected). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13537 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Improved a comment.vlefevre2019-07-231-4/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13536 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Avoid GCC bug 91226: wrong propagation ofvlefevre2019-07-221-3/+8
| | | | | | non-canonical _Decimal64 constant. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13535 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] More output details in the noncanonical test.vlefevre2019-07-221-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13532 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Improved the noncanonical test, but this does notvlefevre2019-07-221-2/+6
| | | | | | solve the failure with gcc-snapshot. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13531 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] More meaningful name of a test with avlefevre2019-07-221-3/+10
| | | | | | | non-canonical encoding and more details (fails with Debian's gcc-snapshot 10.0.0 20190718, trunk revision 273586). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13530 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
* [tests/tget_set_d64.c] Removed xxx suffix added in r13139 (by mistake?).vlefevre2018-09-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13141 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_d64.c] fixed for 16-bit limbzimmerma2018-09-051-2/+2
| | | | | | | | [src/set_d64.c] likewise [tests/tget_set_d64.c] improved error message git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13139 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Improved a test.vlefevre2018-06-231-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12852 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_{d64,d128}.c] When MPFR_ERRDIVZERO is defined,vlefevre2018-06-231-0/+2
| | | | | | | disable tests that can trigger a FP exception DIVBYZERO or INVALID (issue detected with -DMPFR_TESTS_FPE_DIV -DMPFR_ERRDIVZERO). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12849 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] test random inputszimmerma2018-06-221-0/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12844 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] fixed a testzimmerma2018-06-221-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12841 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] removed TODO (done), added commentzimmerma2018-06-221-3/+2
| | | | | | | [tests/tget_set_d128.c] removed TODO (done) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12840 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/set_d64.c] also deal with non-canonical BID encodingzimmerma2018-06-221-0/+26
| | | | | | | [tests/tget_set_d64.c] added test with non-canonical BID encoding git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12837 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{tget_set_d64.c,tget_set_d128.c}] TODO: Also test non-canonicalvlefevre2018-06-221-0/+2
| | | | | | encodings. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12810 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{tget_set_d64.c,tget_set_d128.c}] Tests on powers of 10:vlefevre2018-06-201-8/+23
| | | | | | test negative numbers too. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12792 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{tget_set_d64.c,tget_set_d128.c}] Added tests on powers of 10.vlefevre2018-06-191-0/+46
| | | | | | | * tget_set_d64 fails on negative due to a bad ternary value. * tget_set_d128 fails on negative due to bad value, etc. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12782 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] added -v option to get verbose outputzimmerma2018-06-131-4/+6
| | | | | | | [tests/tget_set_d128.c] likewise git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12769 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced mpfr_mul_2exp & mpfr_div_2exp by mpfr_mul_2ui & mpfr_div_2ui,vlefevre2018-04-171-1/+1
| | | | | | | | respectively (for the tests, except in reuse.c and in taway.c). Note: As documented, mpfr_mul_2exp & mpfr_div_2exp are only kept for compatibility with MPF; mpfr_mul_2ui & mpfr_div_2ui are preferred. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12607 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_d64.c] simplified code, and removed dead codezimmerma2018-02-231-7/+44
| | | | | | | | [src/mpfr-impl.h] added comment [tests/tget_set_d64.c] improve coverage git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12416 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Added/updated comments about the config.h inclusion.vlefevre2018-02-081-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12215 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
* Completed r11955: There were also DEBUG macros under the "tests"vlefevre2017-12-121-3/+1
| | | | | | | | | directory. Since such macros can still be useful in case a test failure, replaced them by MPFR_DEBUG to avoid issues with CI builds that define the DEBUG macro. But an environment variable would be a better solution (see MPFR_DEBUG_BADCASES as an example). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11958 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Got rid of MPFR_TESTS_EXCEPTIONS (added in r11489 and above),vlefevre2017-05-191-2/+2
| | | | | | | | | | | | | | | | | which is redundant with MPFR_TESTS_DIVBYZERO and MPFR_ERRDIVZERO. The code related to these exception is now like r11488 (see the output of "svn diff -r11488"), but keeping the following changes: * Missing !defined(MPFR_ERRDIVZERO) tests added in r11498,11499. * In tests.c: - code related to traps (macro MPFR_RAISE_EXCEPTIONS, which will be renamed); - more detailed output about which FP exceptions occurred; - removal of "#ifdef MPFR_ERRDIVZERO" (as in r11493), as this is better with Automake 1.13+ (required by MPFR since r9375). Note: EXCEPTIONS_FLAG renamed to FPE_FLAGS, since EXCEPTIONS_FLAG is reserved by ISO C when <errno.h> is included. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11504 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Disable tests with a division by 0 (which nowvlefevre2017-05-191-0/+4
| | | | | | occurs only with -DXDEBUG) if MPFR_ERRDIVZERO is defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11499 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Made PRINT_ERR_MISC more robust.vlefevre2017-05-171-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11484 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/*.c] Renamed the remaining macros whose names are reservedvlefevre2017-05-171-16/+16
| | | | | | by ISO C when <errno.h> is included. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11483 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] _GMP_IEEE_FLOATS was got rid of in r10150, but still used invlefevre2016-11-151-3/+3
| | | | | | | | | | | the tests, meaning that some tests were no longer done. So, get rid of _GMP_IEEE_FLOATS also in the tests. Testing !defined(MPFR_ERRDIVZERO) or defined(HAVE_SIGNEDZ) should be sufficient, depending on the context (they were already used alone at some other places, so that new failures are unlikely); anyway, _GMP_IEEE_FLOATS was not the right macro to test. Only tget_set_d64.c has a specific change to use _MPFR_IEEE_FLOATS. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10958 280ebfd0-de03-0410-8827-d642c229c3f4
* added comment about printing decimal floatszimmerma2016-05-171-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10293 280ebfd0-de03-0410-8827-d642c229c3f4
* About "config.h" inclusion: code consistency; removed obsolete comment.vlefevre2016-02-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10128 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
* 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
* [tests] Corrections for builds with "config.h".vlefevre2014-09-091-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9204 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
* [tests/tget_set_d64.c] More meaningful messages in check_inf_nan.vlefevre2013-09-151-35/+48
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8678 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] More meaningful messages in check_inf_nanvlefevre2013-09-151-10/+48
| | | | | | after failures on powerpc64 with the mode32 ABI. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8677 280ebfd0-de03-0410-8827-d642c229c3f4
* Use copyright year ranges, followingvlefevre2013-05-301-1/+1
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8540 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-01-031-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 directory (the tools/mbench directory was not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8447 280ebfd0-de03-0410-8827-d642c229c3f4
* Now --enable-decimal-float does not require any more --with-gmp-build.zimmerma2012-09-031-18/+28
| | | | | | | | Still disabled by default: some more testing is needed before we can enable it by default (if _Decimal64 is supported). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8402 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_d64.c] mpfr_get_decimal64 was buggy in MPFR_RNDN on somevlefevre2012-08-161-0/+27
| | | | | | | | values x such that 0.5e-398 < |x| < 1e-398 (smallest subnormal): it was returning 0 instead of +/- 1e-398 (see r8370). [tests/tget_set_d64.c] Added testcases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8379 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Added overflow tests (they cover the two badvlefevre2012-08-151-2/+58
| | | | | | tests fixed in r8372 and trigger a bug in get_decimal64_max). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8376 280ebfd0-de03-0410-8827-d642c229c3f4