summaryrefslogtreecommitdiff
path: root/tests/tpow.c
Commit message (Collapse)AuthorAgeFilesLines
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-071-11/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed mp_prec_t into mpfr_prec_t.vlefevre2010-04-301-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6767 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
* tpow.c: added an overflow test.vlefevre2009-10-211-35/+43
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6523 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added an overflow test in RNDZ.vlefevre2009-10-211-5/+28
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6522 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-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* Move mpfr_random2 to tests directory, remove it from API.thevenyp2009-03-241-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6136 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-208/+208
| | | | 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
* added round to away (still experimental)zimmerma2009-02-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6030 280ebfd0-de03-0410-8827-d642c229c3f4
* Added missing void's.vlefevre2009-01-201-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5875 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
* Fixed remaining printf format strings.vlefevre2009-01-141-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5813 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
* Remove obsolete mpfr_random function and replace it by mpfr_urandomb in tests.thevenyp2008-09-181-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5640 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: updated comment for bug20080820().vlefevre2008-08-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5554 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: added testcase for bug mentioned in r5552.vlefevre2008-08-201-0/+37
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5553 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: completed test bug20080721.vlefevre2008-07-211-10/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5433 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: added comment for bug20080721.vlefevre2008-07-211-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5431 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: found another bug in mpfr_pow with large integers.vlefevre2008-07-211-0/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5430 280ebfd0-de03-0410-8827-d642c229c3f4
* Clean-up and various changes to be able to build MPFR with g++.vlefevre2008-06-091-1/+1
| | | | | | | | | | | | | But the following 3 tests currently fail with g++ 4.3.1: FAIL: tprintf FAIL: tsprintf FAIL: tfprintf This is an "Illegal instruction" error, so probably a bug in g++. [Edit: acinclude.m4 now uses gl_SIZE_MAX, typically from size_max.m4, but which is not installed on all machines; this will be added to the MPFR repository in changesets 5680 and 5683.] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5385 280ebfd0-de03-0410-8827-d642c229c3f4
* For the terminating null pointer of the functions mpfr_inits,vlefevre2008-02-151-14/+14
| | | | | | | | | | | | | | | | mpfr_inits2, mpfr_clears, always use the type mpfr_ptr (no longer void *). Updated the description of these functions in the manual (mpfr.texi). The reason is that the C standard does not guarantee that (void *) 0 has the same representation as a null pointer to a structure (and even the same size). In most C implementations, the representations are the same, but one never knows (dynamical checking is also always possible)... The change has been done with: perl -pi -e \ 's/(mpfr_(clear|init)s.*)\(void *\*\) *0\)/$1(mpfr_ptr) 0)/' **/*.c under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5290 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2008 withvlefevre2008-01-011-1/+1
| | | | | | | | perl -pi -e 's/2007 Free Software/2007, 2008 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5151 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: enable testcase bug20071218.vlefevre2007-12-201-18/+34
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5124 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: formatting.vlefevre2007-12-191-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5119 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added testcase for another bug found by Kevin P. Rauch.vlefevre2007-12-191-1/+30
| | | | | | | Execute tpow with an argument to enable it. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5118 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed bug in mpfr_pow_ui (introduced in r3214): if x = y (same mpfr_tvlefevre2007-12-181-0/+15
| | | | | | | | | argument), the input argument is negative, n is odd, an overflow or underflow occurs, and the temporary result res is positive, then the result gets a wrong sign (positive instead of negative). Testcase. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5108 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: fixed indentation.vlefevre2007-12-161-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5093 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed another bug reported by Kevin Rauch (__gmpfr_emin was set smallerzimmerma2007-11-291-4/+35
| | | | | | | | | than the minimum allowed value, which produced an exponent wrap-around and a wrong result in mpfr_mul). Not sure if all problems are solved, nevertheless __gmpfr_emin is now in the allowed range. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5059 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug reported by Kevin Rauch (wrong sign in case of underflow forzimmerma2007-11-291-0/+55
| | | | | | | large negative x and large odd negative y) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5054 280ebfd0-de03-0410-8827-d642c229c3f4
* got rid of mpfr_init_gmp_rand/MPFR_TEST_USE_RANDS and not-reentrant gmpzimmerma2007-11-171-1/+0
| | | | | | | | | random functions (mpn_random*, mpz_random*, mpf_random*). Now all tests use either RANDS (which is cleared by tests_rand_end called by tests_end_mpfr), or the gmp_randstate_t mechanism. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4953 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c, tpow_z.c: removed a printf that was left by mistake.vlefevre2007-11-041-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4944 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added testcase for new bug found by Kevin P. Rauch; removed avlefevre2007-11-041-1/+43
| | | | | | | mpfr_dump that was left by mistake. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4942 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added testcase for new bug found by Kevin P. Rauch. The problemvlefevre2007-11-031-0/+28
| | | | | | | | | occurs on x^y with x negative and y an integer whose exponent is > 256 (so that mpfr_pow_z isn't used, and the generic code is used instead and fails because x is negative). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4938 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed several bugs in mpfr_pow (from rev 3592 and 4932); added testcase.vlefevre2007-11-021-0/+43
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4937 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added an overflow test in reduced exponent rangevlefevre2007-11-021-0/+44
| | | | | | | (-> assertion failure in the current pow.c code). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4936 280ebfd0-de03-0410-8827-d642c229c3f4
* Untabified and removed trailing spaces.vlefevre2007-10-311-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4933 280ebfd0-de03-0410-8827-d642c229c3f4
* pow.c, tpow.c: fixed bugs reported by Kevin Rauchzimmerma2007-10-301-0/+48
| | | | | | | mpfr-impl.h: fixed typo git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4932 280ebfd0-de03-0410-8827-d642c229c3f4
* Improved generic tests by limiting the exponent range of the randomvlefevre2007-08-311-0/+1
| | | | | | | numbers for some functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4811 280ebfd0-de03-0410-8827-d642c229c3f4
* Generic tests: adjust the proportion of negative numbers returnedvlefevre2007-08-301-0/+1
| | | | | | | by the random function in order to get fewer NaN cases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4810 280ebfd0-de03-0410-8827-d642c229c3f4
* tpow.c: added a test where x is close to 1.vlefevre2007-08-091-0/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4735 280ebfd0-de03-0410-8827-d642c229c3f4
* No longer use MPFR_CHECK_ALL in tests. In '-dev' versions, assumevlefevre2007-07-251-2/+1
| | | | | | | | | that the data files exist and return an error whenever a file cannot be opened. In the other versions, return silently if the file cannot be opened. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4701 280ebfd0-de03-0410-8827-d642c229c3f4
* Added code to check mpfr against Gonnet's tables when the environment variablezimmerma2007-07-201-0/+16
| | | | | | | MPFR_CHECK_ALL is defined (some table entries were checked by MuPAD) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4688 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: removed comment since there are other <limits.h> macrosvlefevre2007-02-101-1/+1
| | | | | | | | in the file (and this is an old bug: the first one was introduced in rev 2783). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4358 280ebfd0-de03-0410-8827-d642c229c3f4
* added missing includezimmerma2007-02-101-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4357 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed an integer overflow in pow_si.c (detected with -ftrapv) andvlefevre2007-02-091-0/+30
| | | | | | | added a corresponding testcase in tests/tpow.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4356 280ebfd0-de03-0410-8827-d642c229c3f4
* Added "Contributed by the Arenaire and Cacao projects, INRIA." to thevlefevre2007-02-071-0/+1
| | | | | | | copyright notices and removed a few old things. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4350 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: added a test which fails (undetected integer overflow).vlefevre2007-01-191-0/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4342 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tpow.c: new test was wrong; fixed.vlefevre2007-01-191-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4341 280ebfd0-de03-0410-8827-d642c229c3f4