summaryrefslogtreecommitdiff
path: root/tests/tcmp2.c
Commit message (Collapse)AuthorAgeFilesLines
* 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/branches/3.1@8541 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-03-081-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8465 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, reverting the ChangeLog file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7995 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/branches/3.1@7987 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed printf's calls: support the case where mpfr_prec_t is not a longvlefevre2011-05-121-11/+13
| | | | | | | (or unsigned long). [merged changeset r7643 from the exp-int branch] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7686 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
* 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
* 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
* Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.vlefevre2010-01-081-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4
* BITS_PER_MP_LIMB -> GMP_LIMB_BITSzimmerma2010-01-081-4/+4
| | | | | | | | got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP) Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul if it is not already defined (in gmp-impl.h from GMP 4.x). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 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
* [cmp2.c] added commentszimmerma2009-03-051-0/+12
| | | | | | | [tcmp2.c] added test to improve coverage to 100% git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6068 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
* 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/tcmp2.c: fixed printf format strings.vlefevre2009-01-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5810 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
* some other changes suggested by Patrick Pelissier for 16-bit portabilityzimmerma2008-04-061-5/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5348 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
* Replaced -0.0 by a new macro DBL_NEG_ZERO. With MSVC, the negative zerovlefevre2006-01-191-2/+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
* Added ', Inc.' when missing after 'Free Software Foundation'.vlefevre2006-01-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3985 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
* Converted tabs to spaces with expand.vlefevre2005-08-181-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3725 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
* improved coverage testzimmerma2004-02-131-3/+15
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2698 280ebfd0-de03-0410-8827-d642c229c3f4
* + Optimize a few div.cpelissip2003-12-151-6/+3
| | | | | | | | | | | | + Remove some warnings in asin.c, atan.c. + Include limits.h before gmp-impl.h in mpfr-impl.h + mpfr-tests.h doesn't include anumore standard include files. + Test files include only standard includes and mpfr-tests.h. + Add some forgotten mpfr_clear in mpf[r]_compat. + Remove some warnings in the tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2576 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated documentation. In particular, mpfr_set_str_raw renamedvlefevre2003-10-021-11/+11
| | | | | | | | | | | | as mpfr_set_str_binary. This function and mpfr_print_binary are now internal functions. mpfr_print_binary no longer prints the non-significant 0 bits. Updated the source to match the manual. mpfr_print_binary has been completely rewritten (now directly prints to stdout, without using an intermediate string). In mpfr_set_str_binary, replaced atol by strtol + error checking. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2466 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed the remaining stderr to stdout.vlefevre2003-09-251-117/+122
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2449 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced misc random functions by GMP ones.vlefevre2003-06-121-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2329 280ebfd0-de03-0410-8827-d642c229c3f4
* Patch by Torbjorn: use puts not putchar, to avoid GNUPro compiler bug.ryde2003-06-091-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2317 280ebfd0-de03-0410-8827-d642c229c3f4
* Prototypes: use static. Some code reformatting.vlefevre2003-01-241-9/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2224 280ebfd0-de03-0410-8827-d642c229c3f4
* now use __gmpfr_floor_log2 instead of floor/log to get rid of math.hzimmerma2003-01-171-21/+34
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2199 280ebfd0-de03-0410-8827-d642c229c3f4
* put back math.hzimmerma2003-01-161-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2196 280ebfd0-de03-0410-8827-d642c229c3f4
* removed math.hzimmerma2003-01-161-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2191 280ebfd0-de03-0410-8827-d642c229c3f4
* Patch by Kevin Ryde for memory leak checking + misc declaration fixes.vlefevre2002-05-271-0/+2
| | | | | | | Code moved from mpfr-test.h to tests.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1932 280ebfd0-de03-0410-8827-d642c229c3f4
* COPYING -> COPYING.LIB and GPL re-added.vlefevre2002-04-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1877 280ebfd0-de03-0410-8827-d642c229c3f4
* COPYING.LIB -> COPYING.vlefevre2002-04-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1820 280ebfd0-de03-0410-8827-d642c229c3f4
* - use mpfr_test_init to initialize harware floatszimmerma2002-03-261-7/+2
| | | | | | | | - use #ifdef HAVE_INFS when using DBL_NAN, ... - fixed some problems with wrongly converted f-p values (esp. under IRIX) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1783 280ebfd0-de03-0410-8827-d642c229c3f4
* replaced rand/lrand48, drand48, srand/srand48 by macroszimmerma2002-03-211-2/+2
| | | | | | | | LONG_RAND, DBL_RAND, SEED_RAND and time(NULL) by getpid() git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1762 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright line changed.vlefevre2002-03-041-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1713 280ebfd0-de03-0410-8827-d642c229c3f4
* Patches by Kevin Ryde for K&R compilersvlefevre2002-01-121-7/+8
| | | | | | | and other fixes in prototypes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1649 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimization: mpfr_cmp2 now accepts any combination of real argumentsvlefevre2002-01-041-26/+47
| | | | | | | | | and computes the sign of |b| - |c| (in addition to the number of cancelled bits); mpfr_add, mpfr_sub, mpfr_sub1, mpfr_agm and some tests updated to take this change into account. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1641 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_print_raw -> mpfr_print_binaryzimmerma2001-11-161-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1558 280ebfd0-de03-0410-8827-d642c229c3f4
* changed Library GPL to Lesser GPLzimmerma2001-11-161-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1536 280ebfd0-de03-0410-8827-d642c229c3f4
* 0 -> GMP_RNDNzimmerma2001-04-051-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1071 280ebfd0-de03-0410-8827-d642c229c3f4