summaryrefslogtreecommitdiff
path: root/tests/tpow_all.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* [tests] Removed #include of headers already included via "mpfr-test.h"vlefevre2012-02-241-2/+0
| | | | | | | (<limits.h>, <stdio.h>, <stdlib.h>). Note: this change doesn't apply to tvalist.c, which is a special test that doesn't use "mpfr-test.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8054 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-101-1/+1
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7993 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-101-1/+1
| | | | | | | | | perl -pi -e 's/2011 Free Software/2011, 2012 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2011 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7986 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2011 withvlefevre2011-01-171-1/+1
| | | | | | | | perl -pi -e 's/2010 Free Software/2010, 2011 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 and tools/mbench directories. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7389 280ebfd0-de03-0410-8827-d642c229c3f4
* avoid several compiler warnings with g++zimmerma2010-10-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7195 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2010-07-301-1/+1
| | | | | | | | Contributed by the Arenaire and Cacao projects by Contributed by the Arenaire and Caramel projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7026 280ebfd0-de03-0410-8827-d642c229c3f4
* Type corrections for C++ compilers (in particular, mpfr_rnd_t vs int).vlefevre2010-05-191-4/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6825 280ebfd0-de03-0410-8827-d642c229c3f4
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-071-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2010 withvlefevre2010-01-201-1/+1
| | | | | | | perl -pi -e 's/2009 Free Software/2009, 2010 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the mbench directory. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6684 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed COPYING.LIB as COPYING.LESSER (GNU Coding Standards, #7.3)vlefevre2009-07-301-1/+1
| | | | | | and updated all the references (except in ChangeLog). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6351 280ebfd0-de03-0410-8827-d642c229c3f4
* mp_rnd_t -> mpfr_rnd_tvlefevre2009-06-261-23/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* Put '#include <string.h>' in mpfr-impl.h, remove it elsewhere.thevenyp2009-05-051-3/+0
| | | | | | | Other cleanup of header inclusion. Other change (by mistake): corrections in algorithms.tex git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6192 280ebfd0-de03-0410-8827-d642c229c3f4
* printf.c tests/tpow_all.c: <string.h> is not automatically included when ↵thevenyp2009-05-051-0/+1
| | | | | | compiling with --with-gmp-build option. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6189 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-51/+51
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
* Update to LGPL v3+, as decided by the main MPFR developers.vlefevre2009-03-031-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6050 280ebfd0-de03-0410-8827-d642c229c3f4
* Untabified and deleted trailing spaces (for patches).vlefevre2009-02-271-7/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6043 280ebfd0-de03-0410-8827-d642c229c3f4
* added round to away (still experimental)zimmerma2009-02-261-5/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6030 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2009 withvlefevre2009-01-151-1/+1
| | | | | | | perl -pi -e 's/2008 Free Software/2008, 2009 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5814 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] changes to make compilation work with g++ (only fixed errors,zimmerma2008-11-201-1/+1
| | | | | | | several warnings remain) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5681 280ebfd0-de03-0410-8827-d642c229c3f4
* This is now GNU MPFR!vlefevre2008-10-271-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5654 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added test of mpfr_rec_sqrt (only with MPFR 2.4.0+).vlefevre2008-08-211-0/+17
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5576 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: removed useless parentheses.vlefevre2008-08-211-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5575 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c:vlefevre2008-08-201-2/+33
| | | | | | | * In cmpres(), if z1 and z2 were both zeros, their sign wasn't tested. * Added test of mpfr_sqr and mpfr_sqrt. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5561 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added an underflow test of x^y with y integer < 0.vlefevre2008-08-201-0/+47
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5548 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: fixed mpfr_clear in overflow_inv.vlefevre2008-08-201-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5543 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: more detailed error messages.vlefevre2008-08-201-5/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5542 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: improved overflow_inv tests to trigger a bugvlefevre2008-08-201-48/+58
| | | | | | | | | in mpfr_pow_z due to incorrect rounding mode settings in r5315: on a 64-bit Linux machine, "./tpow_all 1" ends with: Bad overflow flag in overflow_inv for mpfr_pow, extended exponent range, s = 1, t = 1, GMP_RNDZ git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5541 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: in overflow_inv, reduced t to [0,5] and added tests.vlefevre2008-08-201-1/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5540 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: improved error messages.vlefevre2008-08-191-28/+33
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5539 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: changed the precisions in overflow_inv for clearervlefevre2008-08-191-2/+2
| | | | | | output (the reported failures are the same). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5538 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: information about extended exponent range wasn'tvlefevre2008-08-191-41/+43
| | | | | | | always output. For simplicity to provide such an information, made ext a global variable. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5537 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added overflow tests for x^(-1). -> Failure.vlefevre2008-08-191-0/+35
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5536 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added tests -> assertion failed in pow.c line 603.vlefevre2008-08-161-53/+88
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5532 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added test of mpfr_ui_div.vlefevre2008-08-151-1/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5531 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged vlefevre branch:vlefevre2008-08-111-42/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn merge -c-5445 . svn merge -r5436:HEAD .../mpfr/branches/vlefevre * pow.c: - Moved the general case from mpfr_pow() to a new internal function mpfr_pow_general(). - In this function (from old code), avoid unnecessary overflow test if the intermediate result is not an infinity (which was the case of underflow with non-zero result, thus not an overflow). - Fixed a double-rounding problem that occurred in this function in some underflow cases when rescaling the result. - Added log messages. * mpfr-impl.h: added mpfr_pow_general prototype. * pow_z.c: - The underflow case of mpfr_pow_pos_z() in rounding to nearest, which was incorrect, is now handled by calling mpfr_pow_general(), which can scale the result thus decide whether the rounded result should be 0 or nextabove(0). To avoid the exact cases of x^y with y integer (not supported by mpfr_pow_general()), rounding is done in precision 2 (this is also faster!). - Fixed underflow-related bug (case exact result = 2^(emin-2), in rounding to nearest). - Added log messages. * pow_ui.c: - Swapped parameters x and y for consistency (-> y = x^n). - Fixed the internal overflows and underflows (which could yield spurious overflows/underflows and incorrect results) by using mpfr_pow_z. * tests/tpow_all.c: - Test flags in test_others and cmpres; cmpres argument z1 can now be a null pointer (if unknown pure FP value, thus not tested). - Added a test of 2^(emin - i/4) with 0 <= i <= 12, that triggered the bugs mentioned above (and now fixed). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5505 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added test of mpfr_exp2 and mpfr_exp10.vlefevre2008-07-251-0/+26
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5445 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: added a test that detects a bug in an underflow case.vlefevre2008-07-211-18/+109
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5429 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow_all.c: made the comparisons between the power functionsvlefevre2008-07-211-134/+176
| | | | | | generic to be able to add other tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5428 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed a bug in pow_ui.c and pow_z.c: NaN^0 returned NaN instead of 1vlefevre2008-07-201-0/+263
(see documentation). Affected functions: mpfr_pow_ui, mpfr_pow_si and mpfr_pow_z (but not mpfr_pow). Added new test file tests/tpow_all.c to test all the MPFR power functions on simple and special values. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5423 280ebfd0-de03-0410-8827-d642c229c3f4