summaryrefslogtreecommitdiff
path: root/set_d.c
Commit message (Collapse)AuthorAgeFilesLines
* Source reorganization. In short:vlefevre2010-08-171-255/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added directories and moved related files into them: - src for the MPFR source files (to build the library). - doc for documentation files (except INSTALL, README...). - tools for various tools (scripts) and mbench. - tune for tuneup-related source files. - other for other source files (not distributed in tarballs). Existing directories: - tests for the source files of the test suite (make check). - examples for examples. - m4 for m4 files. * Renamed configure.in to configure.ac. * Added/updated Makefile.am files where needed. * Updated acinclude.m4 and configure.ac (AC_CONFIG_FILES line). * Updated the documentation (INSTALL, README, doc/README.dev and doc/mpfr.texi). * Updated NEWS and TODO. * Updated the scripts now in tools. The following script was used: #!/usr/bin/env zsh svn mkdir doc other src tools tune svn mv ${${(M)$(sed -n '/libmpfr_la_SOURCES/,/[^\]$/p' \ Makefile.am):#*.[ch]}:#get_patches.c} mparam_h.in \ round_raw_generic.c jyn_asympt.c src svn mv mbench check_inits_clears coverage get_patches.sh mpfrlint \ nightly-test update-patchv update-version tools svn mv bidimensional_sample.c speed.c tuneup.c tune svn mv *.{c,h} other svn mv FAQ.html README.dev algorithm* faq.xsl fdl.texi mpfr.texi \ update-faq doc svn mv configure.in configure.ac svn cp Makefile.am src/Makefile.am svn rm replace_all [Modifying some files, see above] svn add doc/Makefile.am svn add tune/Makefile.am git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7087 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
* Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.vlefevre2010-01-081-9/+9
| | | | 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-9/+9
| | | | | | | | 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
* mp_rnd_t -> mpfr_rnd_tvlefevre2009-06-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* Suppressed MPFR_CLEAR_FLAGS (no longer did anything).vlefevre2009-06-261-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6294 280ebfd0-de03-0410-8827-d642c229c3f4
* Put '#include <string.h>' in mpfr-impl.h, remove it elsewhere.thevenyp2009-05-051-1/+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
* 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
* 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
* 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 a bug related to signed/unsigned types.vlefevre2006-11-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4183 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-5/+3
| | | | | | | | | | 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-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3974 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing spaces (better for future patches, as such spacesvlefevre2005-08-181-3/+3
| | | | | | | are sometimes stripped). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3726 280ebfd0-de03-0410-8827-d642c229c3f4
* Converted tabs to spaces with expand.vlefevre2005-08-181-22/+22
| | | | 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
* 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
* Replace use of mpfr_save_emin_emax () / mpfr_restore_emin_emax()pelissip2004-11-181-15/+4
| | | | | | | | by MPFR_SAVE_EXPO macros (DECL, MARK and FREE) which are faster and thread safe. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3100 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed the definitions of DBL_POS_INF/DBL_NEG_INF/DBL_NAN forvlefevre2004-10-271-0/+1
| | | | | | | | | | | Visual C++ as they were incorrect. Modified DOUBLE_ISINF(x) so that infinities are no longer used (this should fix a part of the problem for Visual C++). If IEEE 754 is not supported, one should probably use the standard INFINITY macro instead of (1.0/0.0), since (1.0/0.0) is specific to IEEE 754. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3061 280ebfd0-de03-0410-8827-d642c229c3f4
* Add ICC detection && support.pelissip2004-09-201-8/+12
| | | | | | | Remove some potential warnings in the test files. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2977 280ebfd0-de03-0410-8827-d642c229c3f4
* Likely some tests.pelissip2004-07-061-10/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2935 280ebfd0-de03-0410-8827-d642c229c3f4
* Change from MP_LIMB_T_ONE to MPFR_LIMB_ONE and/or MPFR_LIMB_MASK.pelissip2004-03-261-7/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2858 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove some warnings.pelissip2004-02-241-2/+2
| | | | | | | MPFR can be compiled (but not checked!) with a C++ compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2802 280ebfd0-de03-0410-8827-d642c229c3f4
* deal with overflow/underflow in mpfr_divzimmerma2004-02-161-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2734 280ebfd0-de03-0410-8827-d642c229c3f4
* take into account possible out-of-range exponentzimmerma2004-02-161-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2725 280ebfd0-de03-0410-8827-d642c229c3f4
* new coverage testszimmerma2004-02-141-6/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2714 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-8/+7
| | | | | | | + You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2665 280ebfd0-de03-0410-8827-d642c229c3f4
* Better supports of non IEEE-754 floats (don't use anymore ↵pelissip2004-01-281-5/+24
| | | | | | ieee_double_extract if _GMP_IEEE is not set). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2650 280ebfd0-de03-0410-8827-d642c229c3f4
* Port all the IEEE dependent remaining functions so that it uses a generic ↵pelissip2003-12-011-10/+0
| | | | | | | | | way to compute the result if it detects that the double is not in IEEE format ( _GMP_IEEE_FLOATS == 0). MPFR now should work well on non-IEEE machines. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2567 280ebfd0-de03-0410-8827-d642c229c3f4
* Change the internal format of MPFR: ZERO, INF and NAN have special values of ↵pelissip2003-10-271-4/+6
| | | | | | | | | | | | | | exp. Rename MPFR_ESIZE in MPFR_LIMB_SIZE. Rename MPFR_ABSZISE in MPFR_ALLOC_SIZE. Rename MPFR_INIT in MPFR_TMP_INIT (INIT1 too). "mpfr.h" includes <gmp.h> if GMP isn't detected. Change the way of detecting stdio.h (To check). Use mpfr namespace for new definitions in "mpfr.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2524 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed several bugs.vlefevre2003-10-161-14/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2502 280ebfd0-de03-0410-8827-d642c229c3f4
* moved macros for [L]DBL_MANT_DIG in mpfr-impl.hzimmerma2003-06-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2373 280ebfd0-de03-0410-8827-d642c229c3f4
* Macros MPFR_EXP_INVALID (invalid exponent value) and MPFR_EXP_CHECKvlefevre2003-05-221-3/+3
| | | | | | | | | | | | added. Code update to use MPFR_GET_EXP and MPFR_SET_EXP instead of MPFR_EXP to allow more bug detection related to special values. Macros MPFR_SET_NAN, MPFR_SET_INF, MPFR_SET_ZERO and MPFR_INIT set the exponent of the number to MPFR_EXP_INVALID if MPFR_EXP_CHECK is defined. Compile with -DMPFR_EXP_CHECK and make check to see the potential problems; currently, 40 of 76 tests fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2301 280ebfd0-de03-0410-8827-d642c229c3f4
* Assertion re-added.vlefevre2002-12-131-0/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2120 280ebfd0-de03-0410-8827-d642c229c3f4
* use MPN_NORMALIZE_NOT_ZERO instead of loopzimmerma2002-12-121-12/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2113 280ebfd0-de03-0410-8827-d642c229c3f4
* Patch by Torbjorn Granlund <tege@swox.com>: Don't use TMP_ allocationvlefevre2002-12-101-16/+22
| | | | | | | | | mechanism for fixed size objects. Resulting streamlining. Misc addressing changes to work around GNUPro bugs. Patch by VL: Some other changes in mpfr_set_d. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2111 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
* mpfr_set_d bug fixed, but other bugs still remain...vlefevre2002-04-111-4/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1858 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
* on a 32-bit machine, denormalized numbers with high 32 bits to 0zimmerma2002-03-281-22/+22
| | | | | | | were flushed to zero git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1790 280ebfd0-de03-0410-8827-d642c229c3f4