summaryrefslogtreecommitdiff
path: root/mpfr-gmp.h
Commit message (Collapse)AuthorAgeFilesLines
* Source reorganization. In short:vlefevre2010-08-171-314/+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
* [acinclude.m4] Use AC_FUNC_ALLOCA to have HAVE_ALLOCA_H definedvlefevre2010-06-251-0/+2
| | | | | | | | when available. This problem was introduced when AC_FUNC_ALLOCA was removed from configure.in in r6765. Note: building MPFR with --with-gmp-build is not affected as GMP's config.h is used. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6989 280ebfd0-de03-0410-8827-d642c229c3f4
* [mpfr-gmp.h] Reverted incorrect changeset r6987 (see code about alloca).vlefevre2010-06-251-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6988 280ebfd0-de03-0410-8827-d642c229c3f4
* [mpfr-gmp.h] include alloca.hzimmerma2010-06-251-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6987 280ebfd0-de03-0410-8827-d642c229c3f4
* [mpfr-gmp.h] Fixed alloca prototype (bug detected by tcc 0.9.25vlefevre2010-04-071-1/+1
| | | | | | under Linux/x86_64). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6762 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-12/+11
| | | | | | | | 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
* urandomb.c mpfr-gmp.c mpfr-gmp.h: mpfr_rand_raw is now in urandom.c.thevenyp2009-03-241-5/+0
| | | | | | | | mpfr-impl.h: mpfr_rand_raw is now always build as an internal function. TODO tests/tests.c tests/random2.c: Use mpfr_rand_raw instead of _gmp_rand git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6137 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
* mpfr-gmp.h: Cancel r5261 changes removing the overload due to added test.thevenyp2008-02-081-7/+1
| | | | | | | set_uj.c: Don't call memset when len is zero. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5269 280ebfd0-de03-0410-8827-d642c229c3f4
* MPN_ZERO (dst, n) doesn't call memset when n==0, it prevents warning when ↵thevenyp2008-02-051-1/+7
| | | | | | compiled with gcc -D_FORTIFY_SOURCE git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5261 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr-gmp.h: small fix of a macro.vlefevre2008-01-221-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5205 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr-gmp.h: for temporary allocations, use alloca() if size < 16384.vlefevre2008-01-211-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5204 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr-gmp.{c,h}: no longer use alloca() for the temporary allocations asvlefevre2008-01-141-6/+18
| | | | | | | this can make MPFR crash in some high precisions, due to limited stack. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5186 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
* got rid of mpfr_init_gmp_rand/MPFR_TEST_USE_RANDS and not-reentrant gmpzimmerma2007-11-171-6/+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
* Bug fix: preprocessor # must be in the first column.vlefevre2007-06-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4552 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
* 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
* MPN_COPY now calls memcpy only if dst != src (otherwise this is anvlefevre2005-09-051-1/+13
| | | | | | | | undefined behavior), and if WANT_ASSERT is defined, it checks that there is no overlap. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3779 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing spaces (better for future patches, as such spacesvlefevre2005-08-181-9/+9
| | | | | | | 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-5/+5
| | | | 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
* Change to add future function mpfr_sqrhigh_n.pelissip2005-03-311-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3426 280ebfd0-de03-0410-8827-d642c229c3f4
* Add tune for mpfr_mulhighpelissip2005-03-071-1/+4
| | | | | | | Add --with-mulhigh-size option at configure time. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3363 280ebfd0-de03-0410-8827-d642c229c3f4
* Add support for Shared Library in MPFR (both Unix and Windows) by using libtool.pelissip2005-02-081-12/+17
| | | | | | | | Improve configure (remove unused macros, make dist produce .zip and .bz2) Update update-version to modify configure.in too. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3281 280ebfd0-de03-0410-8827-d642c229c3f4
* Add forgotten 2005 copyright line.pelissip2005-01-121-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3182 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix problem of `mpn_sub_nc' which may or may not be defined in libgmp.apelissip2005-01-121-6/+0
| | | | | | | | (Add a test in the configure and a new macro MPFR_HAVE_MPN_SUB_NC) Add MPFR_LOG2_BIT_PER_MP_LIMB macro git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3181 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug if not gmp-impl.h (mpn_sub_nc is internal).pelissip2005-01-041-0/+15
| | | | | | | | Move MPFR_SET_EXP after checking the exponent range. Minor change in the way to return the ternary value. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3163 280ebfd0-de03-0410-8827-d642c229c3f4
* Improve the emulation of mpn_sqr_n and fix some typos.pelissip2004-07-191-21/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2943 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix a bug in a proto.pelissip2004-04-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2870 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix another bug (Maybe the last?).pelissip2004-04-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2867 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix a tiny bug.pelissip2004-04-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2866 280ebfd0-de03-0410-8827-d642c229c3f4
* Update memory allocations scheme without gmp-impl.h.pelissip2004-04-081-6/+22
| | | | | | | | Now the semantic of the memory allocation scheme is the same with and without gmp-impl, as it should be. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2865 280ebfd0-de03-0410-8827-d642c229c3f4
* Modify a few the allocation scheme without gmp-impl.hpelissip2004-04-071-12/+14
| | | | | | | | Add pseudo-constants __MPFR_EXP_NAN, __MPFR_EXP_ZERO and __MPFR_EXP_INF for future (?) inlining of some functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2863 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-0/+267
+ 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