summaryrefslogtreecommitdiff
path: root/tests/tset_ld.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [tests/*.c] Support the case where mpfr_exp_t is not a long intvlefevre2010-10-191-1/+7
| | | | | | | (but with such a future extension, one should probably provide a MPFR_PRIexp macro, similar to what <inttypes.h> does). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7226 280ebfd0-de03-0410-8827-d642c229c3f4
* [tset_ld.c] replaced hexadecimal long double constants by decimal constantszimmerma2010-10-191-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7224 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] Added a FIXME for r7222 change.vlefevre2010-10-191-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7223 280ebfd0-de03-0410-8827-d642c229c3f4
* [set_ld.c] fixed bug #11300 on bug trackerzimmerma2010-10-191-0/+26
| | | | | | | [tset_ld.c] added corresponding tests git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7222 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Avoid warning due to -Wunused-but-set-variable (from futurevlefevre2010-08-131-2/+1
| | | | | | | | | | | | | | GCC 4.6). Only let the one from tsubnormal.c because it's a TODO. * mpf_compat.h: use the variables, that are there for prototype checking. * tpow.c, tpow_z.c: test the ternary value. * tremquo.c: removed inex variables (the bug due to the MPFR value). * tset.c: test the ternary value. * tset_ld.c: removed the long double variable (it cannot be tested in a portable way and the bug was an assertion failure). * tzeta_ui.c: removed the inexact variable (not really useful here). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7077 280ebfd0-de03-0410-8827-d642c229c3f4
* Support implementations where the floating-point division by 0 fails.vlefevre2010-08-041-0/+4
| | | | | | | | | | | | | | * acinclude.m4: added a test to check whether the FP division by 0 fails, and define MPFR_ERRDIVZERO in such a case. * tests/tests.c: if MPFR_TEST_DIVBYZERO is defined, test whether there has been a floating-point division by 0 (FE_DIVBYZERO or FE_INVALID exception). * tests/tgeneric.c: if MPFR_ERRDIVZERO is defined, disable the huge and tiny cases. * tests/t*_{flt,d,ld}.c: if MPFR_ERRDIVZERO is defined, disable tests involving NaN and infinities. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7050 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
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-071-1/+1
| | | | 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
* [tset_ld.c] now perform tests even if old gcc bug is presentzimmerma2009-11-271-3/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6598 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-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tset_ld.c: removed unused variable.vlefevre2009-03-161-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6125 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tset_ld.c: Add test case for the bug fixed with r6101.thevenyp2009-03-161-0/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6124 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-20/+20
| | | | 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
* Fixed bug reported by Chris Saunders: if _GMP_IEEE_FLOATS is defined,vlefevre2009-01-201-1/+2
| | | | | | | | | | the build of tset_ld.c fails because DOUBLE_ISNAN expects a lvalue. * mpfr-impl.h: documented that for such macros, the argument must be a lvalue, and always make sure that it is a lvalue (so that a failure doesn't depend on the environment). * tests/tset_ld.c: fixed the bug. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5880 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tset_ld.c: added explanation of NaN-related failures in casevlefevre2009-01-201-0/+6
| | | | | | MPFR_NANISNAN is defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5878 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr-impl.h: the DOUBLE_ISNAN macro wasn't working with gcc -ffast-mathvlefevre2009-01-191-12/+18
| | | | | | | | (at least on x86_64); fixed that by adding another test. tests/tset_ld.c: Isnan_ld wasn't working either; also the NaN test was incorrect. Now, the failure on NaN is correctly reported. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5867 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.c, tset_ld.c, tgeneric.c: Code clean-up based on icc warnings (as in ↵thevenyp2008-12-121-3/+3
| | | | | | r5492): Use #ifdef BOOL_MACRO instead of #if BOOL_MACRO. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5721 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
* a few patches suggested by Patrick Pelissier to ease porting to 16-bitzimmerma2008-04-061-1/+0
| | | | | | | | architectures: removed useless #include <time.h>, changed 1024 to 1024L, int i to lng i git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5347 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
* 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
* Copyright notice update: added 2007.vlefevre2007-01-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4326 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed FSF address.vlefevre2006-03-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4055 280ebfd0-de03-0410-8827-d642c229c3f4
* Reverted comments on <float.h> (that were added in r3976).vlefevre2006-01-191-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4006 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced -0.0 by a new macro DBL_NEG_ZERO. With MSVC, the negative zerovlefevre2006-01-191-10/+2
| | | | | | | | | | no longer depends on the non-standard _chgsign function, as static double double_zero = 0.0; # define DBL_NEG_ZERO (-double_zero) has been reported to work. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4005 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the copyright notices according to the new GNU rules on:vlefevre2006-01-051-1/+1
| | | | | | | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices i.e. added 2006 to every MPFR file. Note: the copyright notices (currently 336) should match the regexp Copyright.* 2006 Free Software so that it will be easier to update them for the next year... git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3983 280ebfd0-de03-0410-8827-d642c229c3f4
* updated comment for float.h (_chgsign)zimmerma2005-12-231-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3976 280ebfd0-de03-0410-8827-d642c229c3f4
* patch for Visual C (does not compile -0.0 properly)zimmerma2005-12-231-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3974 280ebfd0-de03-0410-8827-d642c229c3f4
* patch for Visual C (-0.0)zimmerma2005-12-231-0/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3973 280ebfd0-de03-0410-8827-d642c229c3f4
* Support C implementations giving an incorrect value for the precisionvlefevre2005-08-181-1/+1
| | | | | | | | of long double or where long doubles are implemented with FP expansions (like under Mac OS X), as in the 2.1 branch. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3723 280ebfd0-de03-0410-8827-d642c229c3f4
* Change the address of the FSF.pelissip2005-06-021-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3606 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed a problem in test_small (already done in the 2.1 branch)vlefevre2005-05-031-1/+4
| | | | | | | when long double = double. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3520 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug with tiny numberzimmerma2005-04-251-3/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3483 280ebfd0-de03-0410-8827-d642c229c3f4
* Added the ability to change the control word when compiling tset_ldvlefevre2005-04-211-1/+16
| | | | | | | | with -DWITH_FPU_CONTROL=1 and executing tset_ld with an argument (not used in the automatical tests yet). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3469 280ebfd0-de03-0410-8827-d642c229c3f4
* Added test_small (the same as in the 2.1 branch).vlefevre2005-04-211-1/+41
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3465 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated copyright lines.vlefevre2005-01-281-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3231 280ebfd0-de03-0410-8827-d642c229c3f4
* New version of mpfr_set_ld and mpfr_get_ld for IEEE Extended Little Endian.pelissip2005-01-271-1/+1
| | | | | | | (Due to problem on x86 with extended precision). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3226 280ebfd0-de03-0410-8827-d642c229c3f4
* casts to allow compilation with g++zimmerma2005-01-271-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3221 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix precision used to test long double.pelissip2004-12-171-1/+2
| | | | | | | Now it is sizeof(long_double)*CHAR_BIT instead of fixed 113. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3151 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix problem with long double with ICC (Wrong x86 processor flag).pelissip2004-12-171-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3148 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove useless assembly code.pelissip2004-12-141-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3136 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced mpfr_set_emin/emax by set_emin/emax in tests to checkvlefevre2004-10-261-2/+2
| | | | | | | | | the return value; defined set_emin/emax in "tests/tests.c". Fix: added missing #include <string.h> in "tests/tests.c". Removed variable names in prototypes in "mpfr-test.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3058 280ebfd0-de03-0410-8827-d642c229c3f4
* use GMP_RND_MAX instead of hard-coded constantzimmerma2004-02-231-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2795 280ebfd0-de03-0410-8827-d642c229c3f4
* Code clean-up and fix to avoid warnings.vlefevre2004-02-161-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2722 280ebfd0-de03-0410-8827-d642c229c3f4