summaryrefslogtreecommitdiff
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
...
* [acinclude.m4,configure.ac] Check the support of the group flag forvlefevre2018-07-271-0/+25
| | | | | | | | native integers, which is a Single UNIX Specification extension. [tests/tsprintf.c] Test the group flag with the P length modifier only when supported, since the implementation relies on this support. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12964 280ebfd0-de03-0410-8827-d642c229c3f4
* Shared caches: fix and minor changes.vlefevre2018-07-181-1/+1
| | | | | | | | | | | | | | * Fixed detection and use of C11 thread support: the C11 header is <threads.h>, not <thread.h>. * Renamed WANT_SHARED_CACHE to MPFR_WANT_SHARED_CACHE for consistency with the other MPFR_WANT_* macros. * Added MPFR_THREAD_LOCK_METHOD macro, giving the thread locking method as a string (when shared caches are enabled). * doc/README.dev: documented 4 macros for shared caches. * tests/tversion.c: output MPFR_WANT_SHARED_CACHE and MPFR_THREAD_LOCK_METHOD information. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12937 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Updated message about the _Float128 support, sincevlefevre2018-07-131-1/+1
| | | | | | this is not just about the compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12922 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed the _Float128 / __float128 detection for NetBSD:vlefevre2018-07-131-2/+11
| | | | | | | Optimization made the "undefined reference" error disappear, so that __float128 was misdetected as being supported. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12921 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] For the _Float128 / __float128 detection, changedvlefevre2018-07-121-2/+6
| | | | | | | | | AC_COMPILE_IFELSE to AC_LINK_IFELSE since an error may occur only at link time, such as under NetBSD: https://mail-index.netbsd.org/pkgsrc-users/2018/02/02/msg026220.html https://mail-index.netbsd.org/pkgsrc-users/2018/02/05/msg026238.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12915 280ebfd0-de03-0410-8827-d642c229c3f4
* Do not assume that the bit-field ordering for _Decimal128 is necessarilyvlefevre2018-06-221-6/+4
| | | | | | | | little endian or big endian (this is more than the usual endianness issue). If this cannot be detected, instead of failing or assuming a possibly wrong default, switch to the portable code. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12847 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] added configure test to determine the encoding of _Decimal128 ↵zimmerma2018-06-221-0/+39
| | | | | | (little or big endian) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12843 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a note on _Decimal64 detection.vlefevre2018-05-021-0/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12696 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Correction for test of the fallback to __float128:vlefevre2018-02-261-1/+1
| | | | | | | in the test program, define the variable outside main() in order to avoid an error when the -Werror=unused-variable GCC option is used. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12452 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed a test, which could define MPFR_INTMAX_WITHIN_LIMBvlefevre2018-02-261-1/+4
| | | | | | | | even when not true (MPFR_STAT_STATIC_ASSERT() was just regarded as a function call since the macro was not defined, thus did not yield an error). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12448 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed incorrect test from r12426.vlefevre2018-02-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12446 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated support for binary128:vlefevre2018-02-261-7/+19
| | | | | | | | | | | | | | | | | | | | | | * __float128 was changed to _Float128 (ISO/IEC TS 18661) in r12391; also changed the suffix of the constants from "q" to "f128". * Use __float128 with the "q" suffix as a fallback in order to avoid regressions with GCC 6- and with C++ mode (g++). As documented in the GCC manual, this is entirely compatible on most platforms where both are supported: _Float128 and __float128 are the same type, and it could be checked that the following prototypes are equivalent (as expected): _Float128 f (__float128) __float128 f (_Float128) The only potential issues would be on hppa and IA-64 HP-UX, where __float128 is an alias for "long double" instead of _Float128, in case the ABI would be different (I have no information about this) and both would be mixed up with software using the MPFR conversion functions for binary128 via __float128 or "long double". The worst thing that could happen is a link error. If the link is accepted, everything should be fine as the representation doesn't change. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12444 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Correction: for AC_COMPILE_IFELSE, there are onlyvlefevre2018-02-231-2/+0
| | | | | | 2 cases: TRUE and FALSE. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12435 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Correction: for AC_COMPILE_IFELSE, there are onlyvlefevre2018-02-231-6/+2
| | | | | | 2 cases: TRUE and FALSE. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12433 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Correction: if we cannot test, the portable code must bevlefevre2018-02-231-3/+1
| | | | | | selected. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12427 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac,acinclude.m4] added new macro MPFR_INTMAX_WITHIN_LIMBzimmerma2018-02-231-0/+27
| | | | | | | [src/get_sj.c] optimized the code when MPFR_INTMAX_WITHIN_LIMB=1 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12426 280ebfd0-de03-0410-8827-d642c229c3f4
* changed __float128 (gcc specific) into the standard type _Float128zimmerma2018-02-221-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12391 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] In the "long double" format recognition, addedvlefevre2018-02-211-12/+12
| | | | | | | size information for IEEE extended (not used by MPFR, but this may be useful information for the user). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12355 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added missing ";;" before "esac" for code robustness.vlefevre2018-02-201-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12336 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a FIXME. Added a ";;" for safety.vlefevre2018-02-201-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12335 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] added comment, and define MPFR_LONG_WITHIN_LIMB when cannot testzimmerma2018-02-201-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12334 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Updated FIXME for MPFR_CHECK_MP_LIMB_T_VS_LONG.vlefevre2018-02-161-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12254 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a FIXME for MPFR_CHECK_MP_LIMB_T_VS_LONG.vlefevre2018-02-161-0/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12253 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ck-mparam and timings-mpfr.c files and the mbench directory under "tools" (not distributed with MPFR). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12067 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] In r11876, forgot to define MPFR_WANT_DECIMAL_FLOATS invlefevre2017-12-011-1/+3
| | | | | | the cross-compiling case. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11878 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Attempt to fix detection of decimal floats: if _Decimal64vlefevre2017-12-011-18/+25
| | | | | | | is known but does not work, no longer fail when --enable-decimal-float has not been used; just disable decimal floats. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11876 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Attempt to fix detection of decimal floats (BID wasvlefevre2017-12-011-11/+16
| | | | | | | incorrectly assumed in case of link failure, if ld returned 1, which was observed on powerpc-ibm-aix7.2.0.0 [gcc119.fsffrance.org]). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11875 280ebfd0-de03-0410-8827-d642c229c3f4
* Got rid of the useless SIZE_MAX macro.vlefevre2017-11-281-3/+0
| | | | | | | | | | | * src/vasprintf.c: replaced SIZE_MAX by (size_t) -1, already used in some other files. * acinclude.m4: no longer use gl_SIZE_MAX (from m4/size_max.m4). * Removed m4/size_max.m4 as it is no longer needed (note that the definition of SIZE_MAX by this file was unnecessarily complex and potentially incorrect on some platforms). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11852 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed MPFR_TESTS_DIVBYZERO to MPFR_TESTS_FPE_DIV (less confusing).vlefevre2017-05-191-1/+1
| | | | | | In doc/README.dev, updated the corresponding description. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11506 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed code for the _mulx_u64 test.vlefevre2017-02-031-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11253 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed _mulx_u64 detection to avoid failures in testsvlefevre2017-02-021-8/+12
| | | | | | with ICC 15: we need an AC_RUN_IFELSE, not just an AC_LINK_IFELSE. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11251 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] MPFR_PARSE_DIRECTORY macro definition: workaround ifvlefevre2017-01-171-5/+14
| | | | | | | | | the realpath command is not found. Suggestion by Trevor Spiteri: https://sympa.inria.fr/sympa/arc/mpfr/2017-01/msg00013.html Note: I had to modify the patch to use quadrigraphs, otherwise the generated configure file was invalid. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11205 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2017 withvlefevre2017-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2016 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11117 280ebfd0-de03-0410-8827-d642c229c3f4
* Improvement concerning the _mulx_u64 intrinsic.vlefevre2016-12-291-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11104 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/div.c] replace GMP's invert_limb (internal) by own codezimmerma2016-12-291-0/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11103 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed m4_pattern_forbid argument to avoid an error withvlefevre2016-09-061-1/+9
| | | | | | | recent ax_pthread.m4 (such as in Debian's autoconf-archive 20160320-1, which has just appeared in unstable). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10798 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] When checking if __float128 is available, we now alsovlefevre2016-06-061-4/+6
| | | | | | | | check whether C99 constants (in particular the __float128 ones, such as 0x1.fp+16383q) are supported since this is now required with the __float128 support. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10440 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed the use of m4_pattern_forbid: the argument mustvlefevre2016-05-241-1/+1
| | | | | | be quoted, otherwise the macro is expanded when defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10364 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Detect whether the AX_PTHREAD macro is left unexpanded.vlefevre2016-05-241-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10362 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Replaced the obsolete ACX_PTHREAD by AX_PTHREADvlefevre2016-05-241-1/+1
| | | | | | (done with "autoupdate acinclude.m4"). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10354 280ebfd0-de03-0410-8827-d642c229c3f4
* Added optional LTO support (from a patch by Patrick Pélissier).vlefevre2016-05-241-0/+59
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10345 280ebfd0-de03-0410-8827-d642c229c3f4
* Added shared cache support (from a patch by Patrick Pélissier).vlefevre2016-05-231-1/+113
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10327 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Improved warning message for the "long double" test.vlefevre2016-04-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10270 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Typo.vlefevre2016-04-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10267 280ebfd0-de03-0410-8827-d642c229c3f4
* set --enable-float128 to "autodetect" by default (like --enable-decimal-float)zimmerma2016-03-031-0/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10192 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Also fixed the test for subnormal double-precisionvlefevre2016-03-021-1/+1
| | | | | | | numbers, in case an extended precision / exponent range is used (however the test is not guaranteed with non-conforming compilers). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10190 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed test for subnormal single-precision numbers.vlefevre2016-03-021-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10189 280ebfd0-de03-0410-8827-d642c229c3f4
* added a separate configure test for subnormals in the "float" formatzimmerma2016-03-021-2/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10188 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4,configure.ac] Various fixes in error messages.vlefevre2016-03-021-5/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10187 280ebfd0-de03-0410-8827-d642c229c3f4
* autodetect support for decimal floats (as suggested in revision 10179)zimmerma2016-03-021-13/+17
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10185 280ebfd0-de03-0410-8827-d642c229c3f4