diff --git a/external/lgpl3/mpfr/dist/Makefile.in b/external/lgpl3/mpfr/dist/Makefile.in index 79ec92d685fd..1be57f5e29b7 100644 --- a/external/lgpl3/mpfr/dist/Makefile.in +++ b/external/lgpl3/mpfr/dist/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.2 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,7 +14,7 @@ @SET_MAKE@ -# Copyright 2000-2018 Free Software Foundation, Inc. +# Copyright 2000-2020 Free Software Foundation, Inc. # This Makefile.am is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -177,7 +177,7 @@ am__recursive_targets = \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope distdir dist dist-all distcheck + cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is @@ -360,6 +360,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ +mini_gmp_path = @mini_gmp_path@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ @@ -387,12 +388,13 @@ SUBDIRS = doc src tests tune tools/bench pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = mpfr.pc nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \ - examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c \ - examples/version.c examples/can_round.c + examples/ReadMe examples/can_round.c examples/divworst.c \ + examples/rndo-add.c examples/sample.c examples/threads.c \ + examples/version.c -EXTRA_DIST = PATCHES VERSION doc/README.dev doc/check-typography \ - tools/ck-clz_tab tools/ck-copyright-notice tools/ck-news \ - tools/ck-version-info tools/get_patches.sh \ +EXTRA_DIST = PATCHES VERSION doc/README.dev doc/check-typography doc/mini-gmp \ + tools/check_mparam.c tools/ck-clz_tab tools/ck-copyright-notice \ + tools/ck-mparam tools/ck-news tools/ck-version-info tools/get_patches.sh \ $(DATAFILES) all: all-recursive @@ -419,8 +421,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -598,7 +600,10 @@ distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ @@ -679,6 +684,10 @@ dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) +dist-zstd: distdir + tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst + $(am__post_remove_distdir) + dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @@ -720,6 +729,8 @@ distcheck: dist eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ + *.tar.zst*) \ + zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) @@ -900,7 +911,7 @@ uninstall-am: uninstall-nobase_dist_docDATA uninstall-pkgconfigDATA am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ - dist-tarZ dist-xz dist-zip distcheck distclean \ + dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \ distclean-generic distclean-libtool distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ @@ -918,20 +929,32 @@ uninstall-am: uninstall-nobase_dist_docDATA uninstall-pkgconfigDATA .PRECIOUS: Makefile +# Since we do not require GNU "make", let's select the POSIX behavior to +# uniformize the behavior a bit more with various "make" implementations +# and ease maintenance. This target should be removed only if one day, +# we need to require GNU "make". +.POSIX: + bench: cd tools/bench && $(MAKE) $(AM_MAKEFLAGS) bench -# Various checks for "make dist". +# Various checks for "make dist" / "make distcheck". +# Warning! With "make distcheck", neither the top-level directory nor +# the tools directory is writable. # * Check consistency concerning -version-info. Moreover if the VERSION # file doesn't end with "-dev", check that the -version-info value is # up-to-date. Note: this is a heuristic, to detect some mistakes. # * Check that copyright notices exist and appear to be correct. # * Check the NEWS file. +# * Check the __clz_tab sizes. +# * Check the mparam.h files. +# * Check typography in mpfr.texi (Texinfo rules). dist-hook: cd $(srcdir) && tools/ck-version-info cd $(srcdir) && tools/ck-copyright-notice cd $(srcdir) && tools/ck-news cd $(srcdir) && tools/ck-clz_tab + $(srcdir)/tools/ck-mparam cd $(srcdir)/doc && ./check-typography # Check that MPFR does not use GMP internal symbols. Of course, do not run diff --git a/external/lgpl3/mpfr/dist/VERSION b/external/lgpl3/mpfr/dist/VERSION index 1454f6ed4b75..ee74734aa225 100644 --- a/external/lgpl3/mpfr/dist/VERSION +++ b/external/lgpl3/mpfr/dist/VERSION @@ -1 +1 @@ -4.0.1 +4.1.0 diff --git a/external/lgpl3/mpfr/dist/config.guess b/external/lgpl3/mpfr/dist/config.guess index ae4c2c93d120..b9afeefaea30 100755 --- a/external/lgpl3/mpfr/dist/config.guess +++ b/external/lgpl3/mpfr/dist/config.guess @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-11-07' +timestamp='2018-02-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; + ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; @@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "${UNAME_SYSTEM}" in +case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu - eval $set_cc_for_build - cat <<-EOF > $dummy.c + eval "$set_cc_for_build" + cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc @@ -149,13 +149,20 @@ Linux|GNU|GNU/*) LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + + # If ldd exists, use it to detect musl libc. + if command -v ldd >/dev/null && \ + ldd --version 2>&1 | grep -q ^musl + then + LIBC=musl + fi ;; esac # Note: order is significant - the case branches are not exclusive. -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, @@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - /sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || \ + "/sbin/$sysctl" 2>/dev/null || \ + "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` - machine=${arch}${endian}-unknown + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine="${arch}${endian}"-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then @@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Determine ABI tags. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release @@ -219,52 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in + case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) - release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}${abi}" + echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) - echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} + echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) - echo ${UNAME_MACHINE}-unknown-sortix + echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) - echo ${UNAME_MACHINE}-unknown-redox + echo "$UNAME_MACHINE"-unknown-redox exit ;; + mips:OSF1:*.*) + echo mips-dec-osf1 + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -316,7 +326,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 @@ -325,10 +335,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos + echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos + echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition @@ -340,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} + echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos @@ -367,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} + echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. @@ -392,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in SUN_ARCH=x86_64 fi fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in @@ -407,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) - echo sparc-sun-sunos${UNAME_RELEASE} + echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} + echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not @@ -436,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} + echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} + echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} + echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} + echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} + echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} + echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} + echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} + echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { @@ -494,11 +504,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} + echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax @@ -524,17 +534,17 @@ EOF AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] + if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ + [ "$TARGET_BINARY_INTERFACE"x = x ] then - echo m88k-dg-dgux${UNAME_RELEASE} + echo m88k-dg-dgux"$UNAME_RELEASE" else - echo m88k-dg-dguxbcs${UNAME_RELEASE} + echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else - echo i586-dg-dgux${UNAME_RELEASE} + echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) @@ -551,7 +561,7 @@ EOF echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id @@ -563,14 +573,14 @@ EOF if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include main() @@ -581,7 +591,7 @@ EOF exit(0); } EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else @@ -595,7 +605,7 @@ EOF exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc @@ -604,9 +614,9 @@ EOF IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} + echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix @@ -615,7 +625,7 @@ EOF echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx @@ -630,28 +640,28 @@ EOF echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in + case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in + case "$sc_kernel_bits" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + if [ "$HP_ARCH" = "" ]; then + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include @@ -684,13 +694,13 @@ EOF exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ ${HP_ARCH} = hppa2.0w ] + if [ "$HP_ARCH" = hppa2.0w ] then - eval $set_cc_for_build + eval "$set_cc_for_build" # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler @@ -709,15 +719,15 @@ EOF HP_ARCH=hppa64 fi fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} + echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include int main () @@ -742,7 +752,7 @@ EOF exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; @@ -763,9 +773,9 @@ EOF exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk + echo "$UNAME_MACHINE"-unknown-osf1mk else - echo ${UNAME_MACHINE}-unknown-osf1 + echo "$UNAME_MACHINE"-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) @@ -790,109 +800,109 @@ EOF echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} + echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in + case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin + echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 + echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 + echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys + echo "$UNAME_MACHINE"-pc-msys exit ;; i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 + echo "$UNAME_MACHINE"-pc-pw32 exit ;; *:Interix*:*) - case ${UNAME_MACHINE} in + case "$UNAME_MACHINE" in x86) - echo i586-pc-interix${UNAME_RELEASE} + echo i586-pc-interix"$UNAME_RELEASE" exit ;; authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} + echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; IA64) - echo ia64-unknown-interix${UNAME_RELEASE} + echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; esac ;; i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin + echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix + echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -906,63 +916,63 @@ EOF esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; k1om:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el @@ -976,70 +986,74 @@ EOF #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" + test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; mips64el:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} + echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} + echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} + echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; + PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; + PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; + *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} + echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} + echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} + echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} + echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} + echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + if objdump -f /bin/sh | grep -q elf32-x86-64; then + echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 + else + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + fi exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. @@ -1053,34 +1067,34 @@ EOF # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx + echo "$UNAME_MACHINE"-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop + echo "$UNAME_MACHINE"-unknown-stop exit ;; i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos + echo "$UNAME_MACHINE"-unknown-atheos exit ;; i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable + echo "$UNAME_MACHINE"-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} + echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp + echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) @@ -1090,12 +1104,12 @@ EOF *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 @@ -1105,9 +1119,9 @@ EOF && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv32 + echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) @@ -1127,9 +1141,9 @@ EOF exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) @@ -1149,9 +1163,9 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; @@ -1160,28 +1174,28 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} + echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} + echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} + echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} + echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} + echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 @@ -1192,7 +1206,7 @@ EOF *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 + echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi @@ -1212,23 +1226,23 @@ EOF exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos + echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} + echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv"$UNAME_RELEASE" else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. @@ -1247,39 +1261,39 @@ EOF echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} + echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} + echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} + echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} + echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} + echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} + echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; SX-ACE:SUPER-UX:*:*) - echo sxace-nec-superux${UNAME_RELEASE} + echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} + echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build + eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ @@ -1307,7 +1321,7 @@ EOF # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` @@ -1315,22 +1329,25 @@ EOF UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-*:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} + echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} + echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; NSR-*:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} + echo nsr-tandem-nsk"$UNAME_RELEASE" + exit ;; + NSV-*:NONSTOP_KERNEL:*:*) + echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) - echo nsx-tandem-nsk${UNAME_RELEASE} + echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux @@ -1339,7 +1356,7 @@ EOF echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 @@ -1350,7 +1367,7 @@ EOF else UNAME_MACHINE="$cputype" fi - echo ${UNAME_MACHINE}-unknown-plan9 + echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 @@ -1371,14 +1388,14 @@ EOF echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} + echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in + case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; @@ -1387,16 +1404,16 @@ EOF echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos + echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros + echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx + echo "$UNAME_MACHINE"-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs @@ -1405,7 +1422,7 @@ esac echo "$0: unable to guess system type" >&2 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 </dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" EOF exit 1 diff --git a/external/lgpl3/mpfr/dist/config.sub b/external/lgpl3/mpfr/dist/config.sub index 00f68b8e5f3d..1d8e98bcee23 100755 --- a/external/lgpl3/mpfr/dist/config.sub +++ b/external/lgpl3/mpfr/dist/config.sub @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-11-23' +timestamp='2018-02-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -67,7 +67,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -94,7 +94,7 @@ while test $# -gt 0 ; do *local*) # First pass through any local machine types. - echo $1 + echo "$1" exit ;; * ) @@ -112,7 +112,7 @@ esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ @@ -120,16 +120,16 @@ case $maybe_os in kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` + basic_machine=`echo "$1" | sed 's/-[^-]*$//'` + if [ "$basic_machine" != "$1" ] + then os=`echo "$1" | sed 's/.*-/-/'` else os=; fi ;; esac @@ -178,44 +178,44 @@ case $os in ;; -sco6) os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 @@ -227,7 +227,7 @@ case $os in os=-lynxos ;; -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` ;; -psos*) os=-psos @@ -296,7 +296,7 @@ case $basic_machine in | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ + | pdp10 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ @@ -333,7 +333,7 @@ case $basic_machine in basic_machine=$basic_machine-unknown os=-none ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; ms1) basic_machine=mt-unknown @@ -362,7 +362,7 @@ case $basic_machine in ;; # Object if more than one company name word. *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. @@ -457,7 +457,7 @@ case $basic_machine in # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) - basic_machine=i386-unknown + basic_machine=i386-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) @@ -491,7 +491,7 @@ case $basic_machine in basic_machine=x86_64-pc ;; amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl @@ -536,7 +536,7 @@ case $basic_machine in os=-linux ;; blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) @@ -544,13 +544,13 @@ case $basic_machine in os=-cnk ;; c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray @@ -648,7 +648,7 @@ case $basic_machine in os=$os"spe" ;; e500v[12]-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) @@ -740,9 +740,6 @@ case $basic_machine in hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; - hppa-next) - os=-nextstep3 - ;; hppaosf) basic_machine=hppa1.1-hp os=-osf @@ -755,26 +752,26 @@ case $basic_machine in basic_machine=i370-ibm ;; i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; - i386-vsta | vsta) + vsta) basic_machine=i386-unknown os=-vsta ;; @@ -793,19 +790,16 @@ case $basic_machine in os=-sysv ;; leon-*|leon[3-9]-*) - basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; - m88k-omron*) - basic_machine=m88k-omron - ;; magnum | m3230) basic_machine=mips-mips os=-sysv @@ -837,10 +831,10 @@ case $basic_machine in os=-mint ;; mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k @@ -859,7 +853,7 @@ case $basic_machine in os=-msdos ;; ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc @@ -946,6 +940,9 @@ case $basic_machine in nsr-tandem) basic_machine=nsr-tandem ;; + nsv-tandem) + basic_machine=nsv-tandem + ;; nsx-tandem) basic_machine=nsx-tandem ;; @@ -981,7 +978,7 @@ case $basic_machine in os=-linux ;; parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) @@ -997,7 +994,7 @@ case $basic_machine in basic_machine=i386-pc ;; pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc @@ -1012,16 +1009,16 @@ case $basic_machine in basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould @@ -1031,23 +1028,23 @@ case $basic_machine in ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm @@ -1101,17 +1098,10 @@ case $basic_machine in sequent) basic_machine=i386-sequent ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; sh5el) basic_machine=sh5le-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) + simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -1130,7 +1120,7 @@ case $basic_machine in os=-sysv4 ;; strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun @@ -1244,9 +1234,6 @@ case $basic_machine in basic_machine=a29k-wrs os=-vxworks ;; - wasm32) - basic_machine=wasm32-unknown - ;; w65*) basic_machine=w65-wdc os=-none @@ -1266,20 +1253,12 @@ case $basic_machine in basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; none) basic_machine=none-none os=-none @@ -1308,10 +1287,6 @@ case $basic_machine in vax) basic_machine=vax-dec ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; pdp11) basic_machine=pdp11-dec ;; @@ -1321,9 +1296,6 @@ case $basic_machine in sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; cydra) basic_machine=cydra-cydrome ;; @@ -1343,7 +1315,7 @@ case $basic_machine in # Make sure to match an already-canonicalized machine name. ;; *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; esac @@ -1351,10 +1323,10 @@ esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` ;; *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` ;; *) ;; @@ -1377,15 +1349,16 @@ case $os in -solaris) os=-solaris2 ;; - -svr4*) - os=-sysv4 - ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; + # es1800 is here to avoid being matched by es* (a different OS) + -es1800*) + os=-ose + ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. @@ -1398,7 +1371,7 @@ case $os in | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ @@ -1409,14 +1382,15 @@ case $os in | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ - | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ + | -midnightbsd*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1433,12 +1407,12 @@ case $os in -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + -sim | -xray | -os68k* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) - os=`echo $os | sed -e 's|mac|macos|'` + os=`echo "$os" | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc @@ -1447,10 +1421,10 @@ case $os in os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` + os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` + os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition @@ -1461,12 +1435,6 @@ case $os in -wince*) os=-wince ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; -utek*) os=-bsd ;; @@ -1513,7 +1481,7 @@ case $os in -oss*) os=-sysv3 ;; - -svr4) + -svr4*) os=-sysv4 ;; -svr3) @@ -1528,18 +1496,9 @@ case $os in -ose*) os=-ose ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; - -aros*) - os=-aros - ;; -zvmoe) os=-zvmoe ;; @@ -1568,7 +1527,7 @@ case $os in *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac @@ -1664,9 +1623,6 @@ case $basic_machine in *-be) os=-beos ;; - *-haiku) - os=-haiku - ;; *-ibm) os=-aix ;; @@ -1721,9 +1677,6 @@ case $basic_machine in i370-*) os=-mvs ;; - *-next) - os=-nextstep3 - ;; *-gould) os=-sysv ;; @@ -1833,11 +1786,11 @@ case $basic_machine in vendor=stratus ;; esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac -echo $basic_machine$os +echo "$basic_machine$os" exit # Local variables: diff --git a/external/lgpl3/mpfr/dist/src/Makefile.in b/external/lgpl3/mpfr/dist/src/Makefile.in index 12a857cf2a82..46ebb724c6f7 100644 --- a/external/lgpl3/mpfr/dist/src/Makefile.in +++ b/external/lgpl3/mpfr/dist/src/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.2 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,7 +14,7 @@ @SET_MAKE@ -# Copyright 2000-2018 Free Software Foundation, Inc. +# Copyright 2000-2020 Free Software Foundation, Inc. # This Makefile.am is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -99,6 +99,13 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ + +# The mini-gmp.{c,h} files are external files, not part of MPFR, thus they +# must not be put in the tarballs by "make dist". Hence the use of nodist_ +# on the corresponding sources (this is needed even when --with-mini-gmp +# has not been used). +@MINI_GMP_TRUE@am__append_1 = mini-gmp.h +@MINI_GMP_TRUE@am__append_2 = libminigmp.la subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -139,14 +146,23 @@ am__uninstall_files_from_dir = { \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -libmpfr_la_DEPENDENCIES = @LIBOBJS@ +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \ + "$(DESTDIR)$(includedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) +libminigmp_la_LIBADD = +@MINI_GMP_TRUE@nodist_libminigmp_la_OBJECTS = mini-gmp.lo +libminigmp_la_OBJECTS = $(nodist_libminigmp_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +@MINI_GMP_TRUE@am_libminigmp_la_rpath = +libmpfr_la_DEPENDENCIES = @LIBOBJS@ $(am__append_2) am_libmpfr_la_OBJECTS = exceptions.lo extract.lo uceil_exp2.lo \ uceil_log2.lo ufloor_log2.lo add.lo add1.lo add_ui.lo agm.lo \ - clear.lo cmp.lo cmp_abs.lo cmp_si.lo cmp_ui.lo comparisons.lo \ - div_2exp.lo div_2si.lo div_2ui.lo div.lo div_ui.lo dump.lo \ - eq.lo exp10.lo exp2.lo exp3.lo exp.lo frac.lo frexp.lo \ + clear.lo cmp.lo cmpabs.lo cmp_si.lo cmp_ui.lo comparisons.lo \ + div_2exp.lo div_2si.lo div_2ui.lo div.lo div_ui.lo dot.lo \ + dump.lo eq.lo exp10.lo exp2.lo exp3.lo exp.lo frac.lo frexp.lo \ get_d.lo get_exp.lo get_str.lo init.lo inp_str.lo isinteger.lo \ isinf.lo isnan.lo isnum.lo const_log2.lo log.lo modf.lo \ mul_2exp.lo mul_2si.lo mul_2ui.lo mul.lo mul_ui.lo neg.lo \ @@ -177,19 +193,19 @@ am_libmpfr_la_OBJECTS = exceptions.lo extract.lo uceil_exp2.lo \ root.lo sec.lo csc.lo cot.lo eint.lo sech.lo csch.lo coth.lo \ round_near_x.lo constant.lo abort_prec_max.lo \ stack_interface.lo lngamma.lo zeta_ui.lo set_d64.lo get_d64.lo \ - jn.lo yn.lo rem1.lo get_patches.lo add_d.lo sub_d.lo d_sub.lo \ - mul_d.lo div_d.lo d_div.lo li2.lo rec_sqrt.lo min_prec.lo \ - buildopt.lo digamma.lo bernoulli.lo isregular.lo set_flt.lo \ - get_flt.lo scale2.lo set_z_exp.lo ai.lo gammaonethird.lo \ - grandom.lo fpif.lo set_float128.lo get_float128.lo rndna.lo \ - nrandom.lo random_deviate.lo erandom.lo mpfr-mini-gmp.lo \ - fmma.lo log_ui.lo gamma_inc.lo ubf.lo beta.lo odd_p.lo \ - get_q.lo pool.lo -libmpfr_la_OBJECTS = $(am_libmpfr_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = + jn.lo yn.lo rem1.lo add_d.lo sub_d.lo d_sub.lo mul_d.lo \ + div_d.lo d_div.lo li2.lo rec_sqrt.lo min_prec.lo buildopt.lo \ + digamma.lo bernoulli.lo isregular.lo set_flt.lo get_flt.lo \ + scale2.lo set_z_exp.lo ai.lo gammaonethird.lo grandom.lo \ + fpif.lo set_float128.lo get_float128.lo rndna.lo nrandom.lo \ + random_deviate.lo erandom.lo mpfr-mini-gmp.lo fmma.lo \ + log_ui.lo gamma_inc.lo ubf.lo beta.lo odd_p.lo get_q.lo \ + pool.lo total_order.lo set_d128.lo get_d128.lo nbits_ulong.lo \ + cmpabs_ui.lo +am__objects_1 = get_patches.lo +nodist_libmpfr_la_OBJECTS = $(am__objects_1) +libmpfr_la_OBJECTS = $(am_libmpfr_la_OBJECTS) \ + $(nodist_libmpfr_la_OBJECTS) libmpfr_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libmpfr_la_LDFLAGS) $(LDFLAGS) -o $@ @@ -207,7 +223,123 @@ am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles +am__maybe_remake_depfiles = depfiles +am__depfiles_remade = ./$(DEPDIR)/abort_prec_max.Plo \ + ./$(DEPDIR)/acos.Plo ./$(DEPDIR)/acosh.Plo ./$(DEPDIR)/add.Plo \ + ./$(DEPDIR)/add1.Plo ./$(DEPDIR)/add1sp.Plo \ + ./$(DEPDIR)/add_d.Plo ./$(DEPDIR)/add_ui.Plo \ + ./$(DEPDIR)/agm.Plo ./$(DEPDIR)/ai.Plo ./$(DEPDIR)/asin.Plo \ + ./$(DEPDIR)/asinh.Plo ./$(DEPDIR)/atan.Plo \ + ./$(DEPDIR)/atan2.Plo ./$(DEPDIR)/atanh.Plo \ + ./$(DEPDIR)/bernoulli.Plo ./$(DEPDIR)/beta.Plo \ + ./$(DEPDIR)/buildopt.Plo ./$(DEPDIR)/cache.Plo \ + ./$(DEPDIR)/cbrt.Plo ./$(DEPDIR)/check.Plo \ + ./$(DEPDIR)/clear.Plo ./$(DEPDIR)/clears.Plo \ + ./$(DEPDIR)/cmp.Plo ./$(DEPDIR)/cmp2.Plo ./$(DEPDIR)/cmp_d.Plo \ + ./$(DEPDIR)/cmp_ld.Plo ./$(DEPDIR)/cmp_si.Plo \ + ./$(DEPDIR)/cmp_ui.Plo ./$(DEPDIR)/cmpabs.Plo \ + ./$(DEPDIR)/cmpabs_ui.Plo ./$(DEPDIR)/comparisons.Plo \ + ./$(DEPDIR)/const_catalan.Plo ./$(DEPDIR)/const_euler.Plo \ + ./$(DEPDIR)/const_log2.Plo ./$(DEPDIR)/const_pi.Plo \ + ./$(DEPDIR)/constant.Plo ./$(DEPDIR)/copysign.Plo \ + ./$(DEPDIR)/cos.Plo ./$(DEPDIR)/cosh.Plo ./$(DEPDIR)/cot.Plo \ + ./$(DEPDIR)/coth.Plo ./$(DEPDIR)/csc.Plo ./$(DEPDIR)/csch.Plo \ + ./$(DEPDIR)/d_div.Plo ./$(DEPDIR)/d_sub.Plo \ + ./$(DEPDIR)/digamma.Plo ./$(DEPDIR)/dim.Plo \ + ./$(DEPDIR)/div.Plo ./$(DEPDIR)/div_2exp.Plo \ + ./$(DEPDIR)/div_2si.Plo ./$(DEPDIR)/div_2ui.Plo \ + ./$(DEPDIR)/div_d.Plo ./$(DEPDIR)/div_ui.Plo \ + ./$(DEPDIR)/dot.Plo ./$(DEPDIR)/dump.Plo ./$(DEPDIR)/eint.Plo \ + ./$(DEPDIR)/eq.Plo ./$(DEPDIR)/erandom.Plo ./$(DEPDIR)/erf.Plo \ + ./$(DEPDIR)/erfc.Plo ./$(DEPDIR)/exceptions.Plo \ + ./$(DEPDIR)/exp.Plo ./$(DEPDIR)/exp10.Plo ./$(DEPDIR)/exp2.Plo \ + ./$(DEPDIR)/exp3.Plo ./$(DEPDIR)/exp_2.Plo \ + ./$(DEPDIR)/expm1.Plo ./$(DEPDIR)/extract.Plo \ + ./$(DEPDIR)/factorial.Plo ./$(DEPDIR)/fits_intmax.Plo \ + ./$(DEPDIR)/fits_sint.Plo ./$(DEPDIR)/fits_slong.Plo \ + ./$(DEPDIR)/fits_sshort.Plo ./$(DEPDIR)/fits_uint.Plo \ + ./$(DEPDIR)/fits_uintmax.Plo ./$(DEPDIR)/fits_ulong.Plo \ + ./$(DEPDIR)/fits_ushort.Plo ./$(DEPDIR)/fma.Plo \ + ./$(DEPDIR)/fmma.Plo ./$(DEPDIR)/fms.Plo ./$(DEPDIR)/fpif.Plo \ + ./$(DEPDIR)/frac.Plo ./$(DEPDIR)/free_cache.Plo \ + ./$(DEPDIR)/frexp.Plo ./$(DEPDIR)/gamma.Plo \ + ./$(DEPDIR)/gamma_inc.Plo ./$(DEPDIR)/gammaonethird.Plo \ + ./$(DEPDIR)/get_d.Plo ./$(DEPDIR)/get_d128.Plo \ + ./$(DEPDIR)/get_d64.Plo ./$(DEPDIR)/get_exp.Plo \ + ./$(DEPDIR)/get_f.Plo ./$(DEPDIR)/get_float128.Plo \ + ./$(DEPDIR)/get_flt.Plo ./$(DEPDIR)/get_ld.Plo \ + ./$(DEPDIR)/get_patches.Plo ./$(DEPDIR)/get_q.Plo \ + ./$(DEPDIR)/get_si.Plo ./$(DEPDIR)/get_sj.Plo \ + ./$(DEPDIR)/get_str.Plo ./$(DEPDIR)/get_ui.Plo \ + ./$(DEPDIR)/get_uj.Plo ./$(DEPDIR)/get_z.Plo \ + ./$(DEPDIR)/get_z_exp.Plo ./$(DEPDIR)/gmp_op.Plo \ + ./$(DEPDIR)/grandom.Plo ./$(DEPDIR)/hypot.Plo \ + ./$(DEPDIR)/init.Plo ./$(DEPDIR)/init2.Plo \ + ./$(DEPDIR)/inits.Plo ./$(DEPDIR)/inits2.Plo \ + ./$(DEPDIR)/inp_str.Plo ./$(DEPDIR)/int_ceil_log2.Plo \ + ./$(DEPDIR)/isinf.Plo ./$(DEPDIR)/isinteger.Plo \ + ./$(DEPDIR)/isnan.Plo ./$(DEPDIR)/isnum.Plo \ + ./$(DEPDIR)/isqrt.Plo ./$(DEPDIR)/isregular.Plo \ + ./$(DEPDIR)/iszero.Plo ./$(DEPDIR)/jn.Plo ./$(DEPDIR)/li2.Plo \ + ./$(DEPDIR)/lngamma.Plo ./$(DEPDIR)/log.Plo \ + ./$(DEPDIR)/log10.Plo ./$(DEPDIR)/log1p.Plo \ + ./$(DEPDIR)/log2.Plo ./$(DEPDIR)/log_ui.Plo \ + ./$(DEPDIR)/logging.Plo ./$(DEPDIR)/min_prec.Plo \ + ./$(DEPDIR)/mini-gmp.Plo ./$(DEPDIR)/minmax.Plo \ + ./$(DEPDIR)/modf.Plo ./$(DEPDIR)/mp_clz_tab.Plo \ + ./$(DEPDIR)/mpfr-gmp.Plo ./$(DEPDIR)/mpfr-mini-gmp.Plo \ + ./$(DEPDIR)/mpn_exp.Plo ./$(DEPDIR)/mul.Plo \ + ./$(DEPDIR)/mul_2exp.Plo ./$(DEPDIR)/mul_2si.Plo \ + ./$(DEPDIR)/mul_2ui.Plo ./$(DEPDIR)/mul_d.Plo \ + ./$(DEPDIR)/mul_ui.Plo ./$(DEPDIR)/mulders.Plo \ + ./$(DEPDIR)/nbits_ulong.Plo ./$(DEPDIR)/neg.Plo \ + ./$(DEPDIR)/next.Plo ./$(DEPDIR)/nrandom.Plo \ + ./$(DEPDIR)/odd_p.Plo ./$(DEPDIR)/out_str.Plo \ + ./$(DEPDIR)/pool.Plo ./$(DEPDIR)/pow.Plo \ + ./$(DEPDIR)/pow_si.Plo ./$(DEPDIR)/pow_ui.Plo \ + ./$(DEPDIR)/pow_z.Plo ./$(DEPDIR)/powerof2.Plo \ + ./$(DEPDIR)/print_raw.Plo ./$(DEPDIR)/print_rnd_mode.Plo \ + ./$(DEPDIR)/printf.Plo ./$(DEPDIR)/random_deviate.Plo \ + ./$(DEPDIR)/rec_sqrt.Plo ./$(DEPDIR)/reldiff.Plo \ + ./$(DEPDIR)/rem1.Plo ./$(DEPDIR)/rint.Plo \ + ./$(DEPDIR)/rndna.Plo ./$(DEPDIR)/root.Plo \ + ./$(DEPDIR)/round_near_x.Plo ./$(DEPDIR)/round_p.Plo \ + ./$(DEPDIR)/round_prec.Plo ./$(DEPDIR)/scale2.Plo \ + ./$(DEPDIR)/sec.Plo ./$(DEPDIR)/sech.Plo ./$(DEPDIR)/set.Plo \ + ./$(DEPDIR)/set_d.Plo ./$(DEPDIR)/set_d128.Plo \ + ./$(DEPDIR)/set_d64.Plo ./$(DEPDIR)/set_dfl_prec.Plo \ + ./$(DEPDIR)/set_exp.Plo ./$(DEPDIR)/set_f.Plo \ + ./$(DEPDIR)/set_float128.Plo ./$(DEPDIR)/set_flt.Plo \ + ./$(DEPDIR)/set_inf.Plo ./$(DEPDIR)/set_ld.Plo \ + ./$(DEPDIR)/set_nan.Plo ./$(DEPDIR)/set_prc_raw.Plo \ + ./$(DEPDIR)/set_prec.Plo ./$(DEPDIR)/set_q.Plo \ + ./$(DEPDIR)/set_rnd.Plo ./$(DEPDIR)/set_si.Plo \ + ./$(DEPDIR)/set_si_2exp.Plo ./$(DEPDIR)/set_sj.Plo \ + ./$(DEPDIR)/set_str.Plo ./$(DEPDIR)/set_str_raw.Plo \ + ./$(DEPDIR)/set_ui.Plo ./$(DEPDIR)/set_ui_2exp.Plo \ + ./$(DEPDIR)/set_uj.Plo ./$(DEPDIR)/set_z.Plo \ + ./$(DEPDIR)/set_z_exp.Plo ./$(DEPDIR)/set_zero.Plo \ + ./$(DEPDIR)/setmax.Plo ./$(DEPDIR)/setmin.Plo \ + ./$(DEPDIR)/setsign.Plo ./$(DEPDIR)/sgn.Plo \ + ./$(DEPDIR)/si_op.Plo ./$(DEPDIR)/signbit.Plo \ + ./$(DEPDIR)/sin.Plo ./$(DEPDIR)/sin_cos.Plo \ + ./$(DEPDIR)/sinh.Plo ./$(DEPDIR)/sinh_cosh.Plo \ + ./$(DEPDIR)/sqr.Plo ./$(DEPDIR)/sqrt.Plo \ + ./$(DEPDIR)/sqrt_ui.Plo ./$(DEPDIR)/stack_interface.Plo \ + ./$(DEPDIR)/strtofr.Plo ./$(DEPDIR)/sub.Plo \ + ./$(DEPDIR)/sub1.Plo ./$(DEPDIR)/sub1sp.Plo \ + ./$(DEPDIR)/sub_d.Plo ./$(DEPDIR)/sub_ui.Plo \ + ./$(DEPDIR)/subnormal.Plo ./$(DEPDIR)/sum.Plo \ + ./$(DEPDIR)/swap.Plo ./$(DEPDIR)/tan.Plo ./$(DEPDIR)/tanh.Plo \ + ./$(DEPDIR)/total_order.Plo ./$(DEPDIR)/ubf.Plo \ + ./$(DEPDIR)/uceil_exp2.Plo ./$(DEPDIR)/uceil_log2.Plo \ + ./$(DEPDIR)/ufloor_log2.Plo ./$(DEPDIR)/ui_div.Plo \ + ./$(DEPDIR)/ui_pow.Plo ./$(DEPDIR)/ui_pow_ui.Plo \ + ./$(DEPDIR)/ui_sub.Plo ./$(DEPDIR)/urandom.Plo \ + ./$(DEPDIR)/urandomb.Plo ./$(DEPDIR)/vasprintf.Plo \ + ./$(DEPDIR)/version.Plo ./$(DEPDIR)/volatile.Plo \ + ./$(DEPDIR)/yn.Plo ./$(DEPDIR)/zeta.Plo \ + ./$(DEPDIR)/zeta_ui.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @@ -227,14 +359,15 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = -SOURCES = $(libmpfr_la_SOURCES) +SOURCES = $(nodist_libminigmp_la_SOURCES) $(libmpfr_la_SOURCES) \ + $(nodist_libmpfr_la_SOURCES) DIST_SOURCES = $(libmpfr_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac -HEADERS = $(include_HEADERS) +HEADERS = $(include_HEADERS) $(nodist_include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is @@ -371,6 +504,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ +mini_gmp_path = @mini_gmp_path@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ @@ -386,22 +520,23 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -EXTRA_DIST = round_raw_generic.c jyn_asympt.c x86/core2/mparam.h \ - x86/mparam.h x86_64/core2/mparam.h x86_64/pentium4/mparam.h \ - ia64/mparam.h arm/mparam.h powerpc64/mparam.h sparc64/mparam.h \ - generic/mparam.h amd/athlon/mparam.h amd/k8/mparam.h \ - amd/amdfam10/mparam.h powerpc32/mparam.h hppa/mparam.h \ - mips/mparam.h generic/coverage/mparam.h +EXTRA_DIST = round_raw_generic.c jyn_asympt.c \ + add1sp1_extracted.c mul_1_extracted.c sub1sp1_extracted.c \ + amd/mparam.h arm/mparam.h \ + generic/coverage/mparam.h generic/mparam.h \ + mips/mparam.h powerpc64/mparam.h sparc64/mparam.h \ + x86/mparam.h x86_64/core2/mparam.h x86_64/mparam.h include_HEADERS = mpfr.h mpf2mpfr.h -BUILT_SOURCES = mparam.h +nodist_include_HEADERS = $(am__append_1) +BUILT_SOURCES = get_patches.c mparam.h lib_LTLIBRARIES = libmpfr.la libmpfr_la_SOURCES = mpfr.h mpf2mpfr.h mpfr-cvers.h mpfr-gmp.h \ mpfr-impl.h mpfr-intmax.h mpfr-longlong.h mpfr-sassert.h mpfr-thread.h \ exceptions.c extract.c uceil_exp2.c \ uceil_log2.c ufloor_log2.c add.c add1.c add_ui.c agm.c clear.c cmp.c \ -cmp_abs.c cmp_si.c cmp_ui.c comparisons.c div_2exp.c div_2si.c \ -div_2ui.c div.c div_ui.c dump.c eq.c exp10.c exp2.c exp3.c exp.c \ +cmpabs.c cmp_si.c cmp_ui.c comparisons.c div_2exp.c div_2si.c \ +div_2ui.c div.c div_ui.c dot.c dump.c eq.c exp10.c exp2.c exp3.c exp.c \ frac.c frexp.c get_d.c get_exp.c get_str.c init.c inp_str.c isinteger.c \ isinf.c isnan.c isnum.c const_log2.c log.c modf.c mul_2exp.c mul_2si.c \ mul_2ui.c mul.c mul_ui.c neg.c next.c out_str.c printf.c vasprintf.c \ @@ -426,16 +561,18 @@ int_ceil_log2.c isqrt.c strtofr.c pow_z.c logging.c mulders.c get_f.c \ round_p.c erfc.c atan2.c subnormal.c const_catalan.c root.c \ gen_inverse.h sec.c csc.c cot.c eint.c sech.c csch.c coth.c \ round_near_x.c constant.c abort_prec_max.c stack_interface.c lngamma.c \ -zeta_ui.c set_d64.c get_d64.c jn.c yn.c rem1.c get_patches.c add_d.c \ +zeta_ui.c set_d64.c get_d64.c jn.c yn.c rem1.c add_d.c \ sub_d.c d_sub.c mul_d.c div_d.c d_div.c li2.c rec_sqrt.c min_prec.c \ buildopt.c digamma.c bernoulli.c isregular.c set_flt.c get_flt.c \ scale2.c set_z_exp.c ai.c gammaonethird.c ieee_floats.h \ grandom.c fpif.c set_float128.c get_float128.c rndna.c nrandom.c \ random_deviate.h random_deviate.c erandom.c mpfr-mini-gmp.c \ mpfr-mini-gmp.h fmma.c log_ui.c gamma_inc.c ubf.c invert_limb.h \ -invsqrt_limb.h beta.c odd_p.c get_q.c pool.c +invsqrt_limb.h beta.c odd_p.c get_q.c pool.c total_order.c set_d128.c \ +get_d128.c nbits_ulong.c cmpabs_ui.c -libmpfr_la_LIBADD = @LIBOBJS@ +nodist_libmpfr_la_SOURCES = $(BUILT_SOURCES) +libmpfr_la_LIBADD = @LIBOBJS@ $(am__append_2) # Libtool -version-info CURRENT[:REVISION[:AGE]] for libmpfr.la # @@ -446,6 +583,10 @@ libmpfr_la_LIBADD = @LIBOBJS@ # 3. Interfaces removed or changed (BAD, breaks upward compatibility): # ==> Increment CURRENT, set AGE and REVISION to 0. # +# For each new MPFR major-minor version, add a new line below with the +# corresponding -version-info CURRENT and AGE. This will be checked by +# the tools/ck-version-info script. +# # MPFR -version-info # 2.1.x - # 2.2.x 1:x:0 @@ -454,14 +595,17 @@ libmpfr_la_LIBADD = @LIBOBJS@ # 3.0.x 4:x:0 # 3.1.x 5:x:1 # 4.0.x 6:x:0 -libmpfr_la_LDFLAGS = $(MPFR_LDFLAGS) $(LIBMPFR_LDFLAGS) -version-info 6:1:0 +# 4.1.x 7:x:1 +libmpfr_la_LDFLAGS = $(MPFR_LDFLAGS) $(LIBMPFR_LDFLAGS) -version-info 7:0:1 +GET_PATCHES_SH = $(top_srcdir)/tools/get_patches.sh +PATCHES = $(top_srcdir)/PATCHES -# Do not add get_patches.c to CLEANFILES so that this file doesn't -# need to be (re)built as long as no patches are applied. Anyway the -# update of this file should be regarded as part of the patch process, -# and "make clean" shouldn't remove it, just like it doesn't remove -# what has been changed by "patch". -#CLEANFILES = get_patches.c +# The noinst_ below seems OK as libminigmp should be included in libmpfr, +# and this is confirmed by ldd (replacing noinst_ by lib_ does not seem to +# do this and makes linking of the test programs fail). +@MINI_GMP_TRUE@noinst_LTLIBRARIES = libminigmp.la +@MINI_GMP_TRUE@nodist_libminigmp_la_SOURCES = mini-gmp.h mini-gmp.c +@MINI_GMP_TRUE@DISTCLEANFILES = $(nodist_libminigmp_la_SOURCES) # For check-gmp-symbols GMPC = $(top_builddir)/src/gmp.c @@ -471,7 +615,7 @@ GMPI = $(top_builddir)/src/gmp.i # not have this name, e.g. on some platforms or when the shared library # is disabled, these rules do nothing). LIBMPFRSO = $(top_builddir)/src/.libs/libmpfr.so -CLEANFILES = $(GMPC) $(GMPI) +CLEANFILES = get_patches.c $(GMPC) $(GMPI) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am @@ -494,8 +638,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -544,6 +688,20 @@ clean-libLTLIBRARIES: rm -f $${locs}; \ } +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +libminigmp.la: $(libminigmp_la_OBJECTS) $(libminigmp_la_DEPENDENCIES) $(EXTRA_libminigmp_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(am_libminigmp_la_rpath) $(libminigmp_la_OBJECTS) $(libminigmp_la_LIBADD) $(LIBS) + libmpfr.la: $(libmpfr_la_OBJECTS) $(libmpfr_la_DEPENDENCIES) $(EXTRA_libmpfr_la_DEPENDENCIES) $(AM_V_CCLD)$(libmpfr_la_LINK) -rpath $(libdir) $(libmpfr_la_OBJECTS) $(libmpfr_la_LIBADD) $(LIBS) @@ -553,259 +711,275 @@ mostlyclean-compile: distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abort_prec_max.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acos.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acosh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add1.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add1sp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/agm.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ai.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asin.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asinh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atan.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atan2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atanh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bernoulli.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/beta.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildopt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cache.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cbrt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clear.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clears.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_abs.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_ld.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comparisons.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_catalan.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_euler.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_log2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_pi.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constant.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/copysign.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cos.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cosh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cot.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coth.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csch.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/d_div.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/d_sub.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/digamma.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dim.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eq.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erandom.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erfc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exceptions.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp10.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp3.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp_2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/expm1.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extract.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/factorial.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_intmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_sint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_slong.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_sshort.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_uint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_uintmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_ulong.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_ushort.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fma.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fmma.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fms.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fpif.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frac.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/free_cache.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma_inc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gammaonethird.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_d64.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_f.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_float128.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_flt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_ld.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_patches.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_q.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_sj.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_str.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_uj.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_z.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_z_exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gmp_op.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grandom.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hypot.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inits.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inits2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inp_str.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/int_ceil_log2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isinf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isinteger.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnan.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnum.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isqrt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isregular.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iszero.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jn.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/li2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lngamma.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log10.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log1p.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logging.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/min_prec.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/minmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mp_clz_tab.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpfr-gmp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpfr-mini-gmp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpn_exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mulders.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/neg.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/next.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nrandom.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/odd_p.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/out_str.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pool.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_z.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/powerof2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_raw.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_rnd_mode.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random_deviate.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rec_sqrt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reldiff.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rem1.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rndna.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/root.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_near_x.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_p.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_prec.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scale2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sec.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sech.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_d64.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_dfl_prec.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_f.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_float128.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_flt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_inf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ld.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_nan.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_prc_raw.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_prec.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_q.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_rnd.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_si.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_si_2exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_sj.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_str.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_str_raw.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ui_2exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_uj.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_z.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_z_exp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_zero.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setmin.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setsign.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sgn.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/si_op.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signbit.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sin.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sin_cos.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sinh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sinh_cosh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqr.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqrt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqrt_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stack_interface.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strtofr.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub1.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub1sp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub_d.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subnormal.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/swap.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tan.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tanh.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ubf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uceil_exp2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uceil_log2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ufloor_log2.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_div.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_pow.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_pow_ui.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_sub.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/urandom.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/urandomb.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vasprintf.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volatile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yn.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zeta.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zeta_ui.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abort_prec_max.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acos.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acosh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add1.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add1sp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/add_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/agm.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ai.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asin.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asinh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atan.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atan2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atanh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bernoulli.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/beta.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildopt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cache.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cbrt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clear.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clears.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_ld.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmp_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmpabs.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmpabs_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comparisons.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_catalan.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_euler.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_log2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/const_pi.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constant.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/copysign.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cos.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cosh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cot.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coth.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csc.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csch.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/d_div.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/d_sub.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/digamma.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dim.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_2ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/div_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dot.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dump.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eint.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eq.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erandom.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erfc.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exceptions.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp10.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp_2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/expm1.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extract.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/factorial.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_intmax.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_sint.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_slong.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_sshort.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_uint.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_uintmax.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_ulong.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fits_ushort.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fma.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fmma.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fms.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fpif.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frac.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/free_cache.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma_inc.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gammaonethird.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_d128.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_d64.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_f.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_float128.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_flt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_ld.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_patches.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_q.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_sj.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_str.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_uj.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_z.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_z_exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gmp_op.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grandom.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hypot.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inits.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inits2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inp_str.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/int_ceil_log2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isinf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isinteger.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnan.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnum.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isqrt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isregular.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iszero.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jn.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/li2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lngamma.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log10.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log1p.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logging.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/min_prec.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mini-gmp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/minmax.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mp_clz_tab.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpfr-gmp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpfr-mini-gmp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpn_exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_2ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mul_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mulders.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nbits_ulong.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/neg.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/next.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nrandom.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/odd_p.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/out_str.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pool.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_z.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/powerof2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_raw.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_rnd_mode.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random_deviate.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rec_sqrt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reldiff.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rem1.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rint.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rndna.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/root.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_near_x.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_p.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round_prec.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scale2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sec.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sech.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_d128.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_d64.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_dfl_prec.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_f.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_float128.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_flt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_inf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ld.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_nan.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_prc_raw.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_prec.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_q.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_rnd.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_si.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_si_2exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_sj.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_str.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_str_raw.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_ui_2exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_uj.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_z.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_z_exp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set_zero.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setmax.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setmin.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setsign.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sgn.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/si_op.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signbit.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sin.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sin_cos.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sinh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sinh_cosh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqr.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqrt.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sqrt_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stack_interface.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strtofr.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub1.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub1sp.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub_d.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sub_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subnormal.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/swap.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tan.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tanh.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/total_order.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ubf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uceil_exp2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uceil_log2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ufloor_log2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_div.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_pow.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_pow_ui.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_sub.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/urandom.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/urandomb.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vasprintf.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volatile.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yn.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zeta.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zeta_ui.Plo@am__quote@ # am--include-marker + +$(am__depfiles_remade): + @$(MKDIR_P) $(@D) + @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + +am--depfiles: $(am__depfiles_remade) .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< @@ -836,6 +1010,27 @@ uninstall-includeHEADERS: @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) +install-nodist_includeHEADERS: $(nodist_include_HEADERS) + @$(NORMAL_INSTALL) + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ + done + +uninstall-nodist_includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique @@ -889,7 +1084,10 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -924,7 +1122,7 @@ check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \ + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) @@ -955,6 +1153,7 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -963,10 +1162,251 @@ maintainer-clean-generic: clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am + clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-am - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/abort_prec_max.Plo + -rm -f ./$(DEPDIR)/acos.Plo + -rm -f ./$(DEPDIR)/acosh.Plo + -rm -f ./$(DEPDIR)/add.Plo + -rm -f ./$(DEPDIR)/add1.Plo + -rm -f ./$(DEPDIR)/add1sp.Plo + -rm -f ./$(DEPDIR)/add_d.Plo + -rm -f ./$(DEPDIR)/add_ui.Plo + -rm -f ./$(DEPDIR)/agm.Plo + -rm -f ./$(DEPDIR)/ai.Plo + -rm -f ./$(DEPDIR)/asin.Plo + -rm -f ./$(DEPDIR)/asinh.Plo + -rm -f ./$(DEPDIR)/atan.Plo + -rm -f ./$(DEPDIR)/atan2.Plo + -rm -f ./$(DEPDIR)/atanh.Plo + -rm -f ./$(DEPDIR)/bernoulli.Plo + -rm -f ./$(DEPDIR)/beta.Plo + -rm -f ./$(DEPDIR)/buildopt.Plo + -rm -f ./$(DEPDIR)/cache.Plo + -rm -f ./$(DEPDIR)/cbrt.Plo + -rm -f ./$(DEPDIR)/check.Plo + -rm -f ./$(DEPDIR)/clear.Plo + -rm -f ./$(DEPDIR)/clears.Plo + -rm -f ./$(DEPDIR)/cmp.Plo + -rm -f ./$(DEPDIR)/cmp2.Plo + -rm -f ./$(DEPDIR)/cmp_d.Plo + -rm -f ./$(DEPDIR)/cmp_ld.Plo + -rm -f ./$(DEPDIR)/cmp_si.Plo + -rm -f ./$(DEPDIR)/cmp_ui.Plo + -rm -f ./$(DEPDIR)/cmpabs.Plo + -rm -f ./$(DEPDIR)/cmpabs_ui.Plo + -rm -f ./$(DEPDIR)/comparisons.Plo + -rm -f ./$(DEPDIR)/const_catalan.Plo + -rm -f ./$(DEPDIR)/const_euler.Plo + -rm -f ./$(DEPDIR)/const_log2.Plo + -rm -f ./$(DEPDIR)/const_pi.Plo + -rm -f ./$(DEPDIR)/constant.Plo + -rm -f ./$(DEPDIR)/copysign.Plo + -rm -f ./$(DEPDIR)/cos.Plo + -rm -f ./$(DEPDIR)/cosh.Plo + -rm -f ./$(DEPDIR)/cot.Plo + -rm -f ./$(DEPDIR)/coth.Plo + -rm -f ./$(DEPDIR)/csc.Plo + -rm -f ./$(DEPDIR)/csch.Plo + -rm -f ./$(DEPDIR)/d_div.Plo + -rm -f ./$(DEPDIR)/d_sub.Plo + -rm -f ./$(DEPDIR)/digamma.Plo + -rm -f ./$(DEPDIR)/dim.Plo + -rm -f ./$(DEPDIR)/div.Plo + -rm -f ./$(DEPDIR)/div_2exp.Plo + -rm -f ./$(DEPDIR)/div_2si.Plo + -rm -f ./$(DEPDIR)/div_2ui.Plo + -rm -f ./$(DEPDIR)/div_d.Plo + -rm -f ./$(DEPDIR)/div_ui.Plo + -rm -f ./$(DEPDIR)/dot.Plo + -rm -f ./$(DEPDIR)/dump.Plo + -rm -f ./$(DEPDIR)/eint.Plo + -rm -f ./$(DEPDIR)/eq.Plo + -rm -f ./$(DEPDIR)/erandom.Plo + -rm -f ./$(DEPDIR)/erf.Plo + -rm -f ./$(DEPDIR)/erfc.Plo + -rm -f ./$(DEPDIR)/exceptions.Plo + -rm -f ./$(DEPDIR)/exp.Plo + -rm -f ./$(DEPDIR)/exp10.Plo + -rm -f ./$(DEPDIR)/exp2.Plo + -rm -f ./$(DEPDIR)/exp3.Plo + -rm -f ./$(DEPDIR)/exp_2.Plo + -rm -f ./$(DEPDIR)/expm1.Plo + -rm -f ./$(DEPDIR)/extract.Plo + -rm -f ./$(DEPDIR)/factorial.Plo + -rm -f ./$(DEPDIR)/fits_intmax.Plo + -rm -f ./$(DEPDIR)/fits_sint.Plo + -rm -f ./$(DEPDIR)/fits_slong.Plo + -rm -f ./$(DEPDIR)/fits_sshort.Plo + -rm -f ./$(DEPDIR)/fits_uint.Plo + -rm -f ./$(DEPDIR)/fits_uintmax.Plo + -rm -f ./$(DEPDIR)/fits_ulong.Plo + -rm -f ./$(DEPDIR)/fits_ushort.Plo + -rm -f ./$(DEPDIR)/fma.Plo + -rm -f ./$(DEPDIR)/fmma.Plo + -rm -f ./$(DEPDIR)/fms.Plo + -rm -f ./$(DEPDIR)/fpif.Plo + -rm -f ./$(DEPDIR)/frac.Plo + -rm -f ./$(DEPDIR)/free_cache.Plo + -rm -f ./$(DEPDIR)/frexp.Plo + -rm -f ./$(DEPDIR)/gamma.Plo + -rm -f ./$(DEPDIR)/gamma_inc.Plo + -rm -f ./$(DEPDIR)/gammaonethird.Plo + -rm -f ./$(DEPDIR)/get_d.Plo + -rm -f ./$(DEPDIR)/get_d128.Plo + -rm -f ./$(DEPDIR)/get_d64.Plo + -rm -f ./$(DEPDIR)/get_exp.Plo + -rm -f ./$(DEPDIR)/get_f.Plo + -rm -f ./$(DEPDIR)/get_float128.Plo + -rm -f ./$(DEPDIR)/get_flt.Plo + -rm -f ./$(DEPDIR)/get_ld.Plo + -rm -f ./$(DEPDIR)/get_patches.Plo + -rm -f ./$(DEPDIR)/get_q.Plo + -rm -f ./$(DEPDIR)/get_si.Plo + -rm -f ./$(DEPDIR)/get_sj.Plo + -rm -f ./$(DEPDIR)/get_str.Plo + -rm -f ./$(DEPDIR)/get_ui.Plo + -rm -f ./$(DEPDIR)/get_uj.Plo + -rm -f ./$(DEPDIR)/get_z.Plo + -rm -f ./$(DEPDIR)/get_z_exp.Plo + -rm -f ./$(DEPDIR)/gmp_op.Plo + -rm -f ./$(DEPDIR)/grandom.Plo + -rm -f ./$(DEPDIR)/hypot.Plo + -rm -f ./$(DEPDIR)/init.Plo + -rm -f ./$(DEPDIR)/init2.Plo + -rm -f ./$(DEPDIR)/inits.Plo + -rm -f ./$(DEPDIR)/inits2.Plo + -rm -f ./$(DEPDIR)/inp_str.Plo + -rm -f ./$(DEPDIR)/int_ceil_log2.Plo + -rm -f ./$(DEPDIR)/isinf.Plo + -rm -f ./$(DEPDIR)/isinteger.Plo + -rm -f ./$(DEPDIR)/isnan.Plo + -rm -f ./$(DEPDIR)/isnum.Plo + -rm -f ./$(DEPDIR)/isqrt.Plo + -rm -f ./$(DEPDIR)/isregular.Plo + -rm -f ./$(DEPDIR)/iszero.Plo + -rm -f ./$(DEPDIR)/jn.Plo + -rm -f ./$(DEPDIR)/li2.Plo + -rm -f ./$(DEPDIR)/lngamma.Plo + -rm -f ./$(DEPDIR)/log.Plo + -rm -f ./$(DEPDIR)/log10.Plo + -rm -f ./$(DEPDIR)/log1p.Plo + -rm -f ./$(DEPDIR)/log2.Plo + -rm -f ./$(DEPDIR)/log_ui.Plo + -rm -f ./$(DEPDIR)/logging.Plo + -rm -f ./$(DEPDIR)/min_prec.Plo + -rm -f ./$(DEPDIR)/mini-gmp.Plo + -rm -f ./$(DEPDIR)/minmax.Plo + -rm -f ./$(DEPDIR)/modf.Plo + -rm -f ./$(DEPDIR)/mp_clz_tab.Plo + -rm -f ./$(DEPDIR)/mpfr-gmp.Plo + -rm -f ./$(DEPDIR)/mpfr-mini-gmp.Plo + -rm -f ./$(DEPDIR)/mpn_exp.Plo + -rm -f ./$(DEPDIR)/mul.Plo + -rm -f ./$(DEPDIR)/mul_2exp.Plo + -rm -f ./$(DEPDIR)/mul_2si.Plo + -rm -f ./$(DEPDIR)/mul_2ui.Plo + -rm -f ./$(DEPDIR)/mul_d.Plo + -rm -f ./$(DEPDIR)/mul_ui.Plo + -rm -f ./$(DEPDIR)/mulders.Plo + -rm -f ./$(DEPDIR)/nbits_ulong.Plo + -rm -f ./$(DEPDIR)/neg.Plo + -rm -f ./$(DEPDIR)/next.Plo + -rm -f ./$(DEPDIR)/nrandom.Plo + -rm -f ./$(DEPDIR)/odd_p.Plo + -rm -f ./$(DEPDIR)/out_str.Plo + -rm -f ./$(DEPDIR)/pool.Plo + -rm -f ./$(DEPDIR)/pow.Plo + -rm -f ./$(DEPDIR)/pow_si.Plo + -rm -f ./$(DEPDIR)/pow_ui.Plo + -rm -f ./$(DEPDIR)/pow_z.Plo + -rm -f ./$(DEPDIR)/powerof2.Plo + -rm -f ./$(DEPDIR)/print_raw.Plo + -rm -f ./$(DEPDIR)/print_rnd_mode.Plo + -rm -f ./$(DEPDIR)/printf.Plo + -rm -f ./$(DEPDIR)/random_deviate.Plo + -rm -f ./$(DEPDIR)/rec_sqrt.Plo + -rm -f ./$(DEPDIR)/reldiff.Plo + -rm -f ./$(DEPDIR)/rem1.Plo + -rm -f ./$(DEPDIR)/rint.Plo + -rm -f ./$(DEPDIR)/rndna.Plo + -rm -f ./$(DEPDIR)/root.Plo + -rm -f ./$(DEPDIR)/round_near_x.Plo + -rm -f ./$(DEPDIR)/round_p.Plo + -rm -f ./$(DEPDIR)/round_prec.Plo + -rm -f ./$(DEPDIR)/scale2.Plo + -rm -f ./$(DEPDIR)/sec.Plo + -rm -f ./$(DEPDIR)/sech.Plo + -rm -f ./$(DEPDIR)/set.Plo + -rm -f ./$(DEPDIR)/set_d.Plo + -rm -f ./$(DEPDIR)/set_d128.Plo + -rm -f ./$(DEPDIR)/set_d64.Plo + -rm -f ./$(DEPDIR)/set_dfl_prec.Plo + -rm -f ./$(DEPDIR)/set_exp.Plo + -rm -f ./$(DEPDIR)/set_f.Plo + -rm -f ./$(DEPDIR)/set_float128.Plo + -rm -f ./$(DEPDIR)/set_flt.Plo + -rm -f ./$(DEPDIR)/set_inf.Plo + -rm -f ./$(DEPDIR)/set_ld.Plo + -rm -f ./$(DEPDIR)/set_nan.Plo + -rm -f ./$(DEPDIR)/set_prc_raw.Plo + -rm -f ./$(DEPDIR)/set_prec.Plo + -rm -f ./$(DEPDIR)/set_q.Plo + -rm -f ./$(DEPDIR)/set_rnd.Plo + -rm -f ./$(DEPDIR)/set_si.Plo + -rm -f ./$(DEPDIR)/set_si_2exp.Plo + -rm -f ./$(DEPDIR)/set_sj.Plo + -rm -f ./$(DEPDIR)/set_str.Plo + -rm -f ./$(DEPDIR)/set_str_raw.Plo + -rm -f ./$(DEPDIR)/set_ui.Plo + -rm -f ./$(DEPDIR)/set_ui_2exp.Plo + -rm -f ./$(DEPDIR)/set_uj.Plo + -rm -f ./$(DEPDIR)/set_z.Plo + -rm -f ./$(DEPDIR)/set_z_exp.Plo + -rm -f ./$(DEPDIR)/set_zero.Plo + -rm -f ./$(DEPDIR)/setmax.Plo + -rm -f ./$(DEPDIR)/setmin.Plo + -rm -f ./$(DEPDIR)/setsign.Plo + -rm -f ./$(DEPDIR)/sgn.Plo + -rm -f ./$(DEPDIR)/si_op.Plo + -rm -f ./$(DEPDIR)/signbit.Plo + -rm -f ./$(DEPDIR)/sin.Plo + -rm -f ./$(DEPDIR)/sin_cos.Plo + -rm -f ./$(DEPDIR)/sinh.Plo + -rm -f ./$(DEPDIR)/sinh_cosh.Plo + -rm -f ./$(DEPDIR)/sqr.Plo + -rm -f ./$(DEPDIR)/sqrt.Plo + -rm -f ./$(DEPDIR)/sqrt_ui.Plo + -rm -f ./$(DEPDIR)/stack_interface.Plo + -rm -f ./$(DEPDIR)/strtofr.Plo + -rm -f ./$(DEPDIR)/sub.Plo + -rm -f ./$(DEPDIR)/sub1.Plo + -rm -f ./$(DEPDIR)/sub1sp.Plo + -rm -f ./$(DEPDIR)/sub_d.Plo + -rm -f ./$(DEPDIR)/sub_ui.Plo + -rm -f ./$(DEPDIR)/subnormal.Plo + -rm -f ./$(DEPDIR)/sum.Plo + -rm -f ./$(DEPDIR)/swap.Plo + -rm -f ./$(DEPDIR)/tan.Plo + -rm -f ./$(DEPDIR)/tanh.Plo + -rm -f ./$(DEPDIR)/total_order.Plo + -rm -f ./$(DEPDIR)/ubf.Plo + -rm -f ./$(DEPDIR)/uceil_exp2.Plo + -rm -f ./$(DEPDIR)/uceil_log2.Plo + -rm -f ./$(DEPDIR)/ufloor_log2.Plo + -rm -f ./$(DEPDIR)/ui_div.Plo + -rm -f ./$(DEPDIR)/ui_pow.Plo + -rm -f ./$(DEPDIR)/ui_pow_ui.Plo + -rm -f ./$(DEPDIR)/ui_sub.Plo + -rm -f ./$(DEPDIR)/urandom.Plo + -rm -f ./$(DEPDIR)/urandomb.Plo + -rm -f ./$(DEPDIR)/vasprintf.Plo + -rm -f ./$(DEPDIR)/version.Plo + -rm -f ./$(DEPDIR)/volatile.Plo + -rm -f ./$(DEPDIR)/yn.Plo + -rm -f ./$(DEPDIR)/zeta.Plo + -rm -f ./$(DEPDIR)/zeta_ui.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -983,7 +1423,7 @@ info: info-am info-am: -install-data-am: install-includeHEADERS +install-data-am: install-includeHEADERS install-nodist_includeHEADERS install-dvi: install-dvi-am @@ -1012,7 +1452,248 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/abort_prec_max.Plo + -rm -f ./$(DEPDIR)/acos.Plo + -rm -f ./$(DEPDIR)/acosh.Plo + -rm -f ./$(DEPDIR)/add.Plo + -rm -f ./$(DEPDIR)/add1.Plo + -rm -f ./$(DEPDIR)/add1sp.Plo + -rm -f ./$(DEPDIR)/add_d.Plo + -rm -f ./$(DEPDIR)/add_ui.Plo + -rm -f ./$(DEPDIR)/agm.Plo + -rm -f ./$(DEPDIR)/ai.Plo + -rm -f ./$(DEPDIR)/asin.Plo + -rm -f ./$(DEPDIR)/asinh.Plo + -rm -f ./$(DEPDIR)/atan.Plo + -rm -f ./$(DEPDIR)/atan2.Plo + -rm -f ./$(DEPDIR)/atanh.Plo + -rm -f ./$(DEPDIR)/bernoulli.Plo + -rm -f ./$(DEPDIR)/beta.Plo + -rm -f ./$(DEPDIR)/buildopt.Plo + -rm -f ./$(DEPDIR)/cache.Plo + -rm -f ./$(DEPDIR)/cbrt.Plo + -rm -f ./$(DEPDIR)/check.Plo + -rm -f ./$(DEPDIR)/clear.Plo + -rm -f ./$(DEPDIR)/clears.Plo + -rm -f ./$(DEPDIR)/cmp.Plo + -rm -f ./$(DEPDIR)/cmp2.Plo + -rm -f ./$(DEPDIR)/cmp_d.Plo + -rm -f ./$(DEPDIR)/cmp_ld.Plo + -rm -f ./$(DEPDIR)/cmp_si.Plo + -rm -f ./$(DEPDIR)/cmp_ui.Plo + -rm -f ./$(DEPDIR)/cmpabs.Plo + -rm -f ./$(DEPDIR)/cmpabs_ui.Plo + -rm -f ./$(DEPDIR)/comparisons.Plo + -rm -f ./$(DEPDIR)/const_catalan.Plo + -rm -f ./$(DEPDIR)/const_euler.Plo + -rm -f ./$(DEPDIR)/const_log2.Plo + -rm -f ./$(DEPDIR)/const_pi.Plo + -rm -f ./$(DEPDIR)/constant.Plo + -rm -f ./$(DEPDIR)/copysign.Plo + -rm -f ./$(DEPDIR)/cos.Plo + -rm -f ./$(DEPDIR)/cosh.Plo + -rm -f ./$(DEPDIR)/cot.Plo + -rm -f ./$(DEPDIR)/coth.Plo + -rm -f ./$(DEPDIR)/csc.Plo + -rm -f ./$(DEPDIR)/csch.Plo + -rm -f ./$(DEPDIR)/d_div.Plo + -rm -f ./$(DEPDIR)/d_sub.Plo + -rm -f ./$(DEPDIR)/digamma.Plo + -rm -f ./$(DEPDIR)/dim.Plo + -rm -f ./$(DEPDIR)/div.Plo + -rm -f ./$(DEPDIR)/div_2exp.Plo + -rm -f ./$(DEPDIR)/div_2si.Plo + -rm -f ./$(DEPDIR)/div_2ui.Plo + -rm -f ./$(DEPDIR)/div_d.Plo + -rm -f ./$(DEPDIR)/div_ui.Plo + -rm -f ./$(DEPDIR)/dot.Plo + -rm -f ./$(DEPDIR)/dump.Plo + -rm -f ./$(DEPDIR)/eint.Plo + -rm -f ./$(DEPDIR)/eq.Plo + -rm -f ./$(DEPDIR)/erandom.Plo + -rm -f ./$(DEPDIR)/erf.Plo + -rm -f ./$(DEPDIR)/erfc.Plo + -rm -f ./$(DEPDIR)/exceptions.Plo + -rm -f ./$(DEPDIR)/exp.Plo + -rm -f ./$(DEPDIR)/exp10.Plo + -rm -f ./$(DEPDIR)/exp2.Plo + -rm -f ./$(DEPDIR)/exp3.Plo + -rm -f ./$(DEPDIR)/exp_2.Plo + -rm -f ./$(DEPDIR)/expm1.Plo + -rm -f ./$(DEPDIR)/extract.Plo + -rm -f ./$(DEPDIR)/factorial.Plo + -rm -f ./$(DEPDIR)/fits_intmax.Plo + -rm -f ./$(DEPDIR)/fits_sint.Plo + -rm -f ./$(DEPDIR)/fits_slong.Plo + -rm -f ./$(DEPDIR)/fits_sshort.Plo + -rm -f ./$(DEPDIR)/fits_uint.Plo + -rm -f ./$(DEPDIR)/fits_uintmax.Plo + -rm -f ./$(DEPDIR)/fits_ulong.Plo + -rm -f ./$(DEPDIR)/fits_ushort.Plo + -rm -f ./$(DEPDIR)/fma.Plo + -rm -f ./$(DEPDIR)/fmma.Plo + -rm -f ./$(DEPDIR)/fms.Plo + -rm -f ./$(DEPDIR)/fpif.Plo + -rm -f ./$(DEPDIR)/frac.Plo + -rm -f ./$(DEPDIR)/free_cache.Plo + -rm -f ./$(DEPDIR)/frexp.Plo + -rm -f ./$(DEPDIR)/gamma.Plo + -rm -f ./$(DEPDIR)/gamma_inc.Plo + -rm -f ./$(DEPDIR)/gammaonethird.Plo + -rm -f ./$(DEPDIR)/get_d.Plo + -rm -f ./$(DEPDIR)/get_d128.Plo + -rm -f ./$(DEPDIR)/get_d64.Plo + -rm -f ./$(DEPDIR)/get_exp.Plo + -rm -f ./$(DEPDIR)/get_f.Plo + -rm -f ./$(DEPDIR)/get_float128.Plo + -rm -f ./$(DEPDIR)/get_flt.Plo + -rm -f ./$(DEPDIR)/get_ld.Plo + -rm -f ./$(DEPDIR)/get_patches.Plo + -rm -f ./$(DEPDIR)/get_q.Plo + -rm -f ./$(DEPDIR)/get_si.Plo + -rm -f ./$(DEPDIR)/get_sj.Plo + -rm -f ./$(DEPDIR)/get_str.Plo + -rm -f ./$(DEPDIR)/get_ui.Plo + -rm -f ./$(DEPDIR)/get_uj.Plo + -rm -f ./$(DEPDIR)/get_z.Plo + -rm -f ./$(DEPDIR)/get_z_exp.Plo + -rm -f ./$(DEPDIR)/gmp_op.Plo + -rm -f ./$(DEPDIR)/grandom.Plo + -rm -f ./$(DEPDIR)/hypot.Plo + -rm -f ./$(DEPDIR)/init.Plo + -rm -f ./$(DEPDIR)/init2.Plo + -rm -f ./$(DEPDIR)/inits.Plo + -rm -f ./$(DEPDIR)/inits2.Plo + -rm -f ./$(DEPDIR)/inp_str.Plo + -rm -f ./$(DEPDIR)/int_ceil_log2.Plo + -rm -f ./$(DEPDIR)/isinf.Plo + -rm -f ./$(DEPDIR)/isinteger.Plo + -rm -f ./$(DEPDIR)/isnan.Plo + -rm -f ./$(DEPDIR)/isnum.Plo + -rm -f ./$(DEPDIR)/isqrt.Plo + -rm -f ./$(DEPDIR)/isregular.Plo + -rm -f ./$(DEPDIR)/iszero.Plo + -rm -f ./$(DEPDIR)/jn.Plo + -rm -f ./$(DEPDIR)/li2.Plo + -rm -f ./$(DEPDIR)/lngamma.Plo + -rm -f ./$(DEPDIR)/log.Plo + -rm -f ./$(DEPDIR)/log10.Plo + -rm -f ./$(DEPDIR)/log1p.Plo + -rm -f ./$(DEPDIR)/log2.Plo + -rm -f ./$(DEPDIR)/log_ui.Plo + -rm -f ./$(DEPDIR)/logging.Plo + -rm -f ./$(DEPDIR)/min_prec.Plo + -rm -f ./$(DEPDIR)/mini-gmp.Plo + -rm -f ./$(DEPDIR)/minmax.Plo + -rm -f ./$(DEPDIR)/modf.Plo + -rm -f ./$(DEPDIR)/mp_clz_tab.Plo + -rm -f ./$(DEPDIR)/mpfr-gmp.Plo + -rm -f ./$(DEPDIR)/mpfr-mini-gmp.Plo + -rm -f ./$(DEPDIR)/mpn_exp.Plo + -rm -f ./$(DEPDIR)/mul.Plo + -rm -f ./$(DEPDIR)/mul_2exp.Plo + -rm -f ./$(DEPDIR)/mul_2si.Plo + -rm -f ./$(DEPDIR)/mul_2ui.Plo + -rm -f ./$(DEPDIR)/mul_d.Plo + -rm -f ./$(DEPDIR)/mul_ui.Plo + -rm -f ./$(DEPDIR)/mulders.Plo + -rm -f ./$(DEPDIR)/nbits_ulong.Plo + -rm -f ./$(DEPDIR)/neg.Plo + -rm -f ./$(DEPDIR)/next.Plo + -rm -f ./$(DEPDIR)/nrandom.Plo + -rm -f ./$(DEPDIR)/odd_p.Plo + -rm -f ./$(DEPDIR)/out_str.Plo + -rm -f ./$(DEPDIR)/pool.Plo + -rm -f ./$(DEPDIR)/pow.Plo + -rm -f ./$(DEPDIR)/pow_si.Plo + -rm -f ./$(DEPDIR)/pow_ui.Plo + -rm -f ./$(DEPDIR)/pow_z.Plo + -rm -f ./$(DEPDIR)/powerof2.Plo + -rm -f ./$(DEPDIR)/print_raw.Plo + -rm -f ./$(DEPDIR)/print_rnd_mode.Plo + -rm -f ./$(DEPDIR)/printf.Plo + -rm -f ./$(DEPDIR)/random_deviate.Plo + -rm -f ./$(DEPDIR)/rec_sqrt.Plo + -rm -f ./$(DEPDIR)/reldiff.Plo + -rm -f ./$(DEPDIR)/rem1.Plo + -rm -f ./$(DEPDIR)/rint.Plo + -rm -f ./$(DEPDIR)/rndna.Plo + -rm -f ./$(DEPDIR)/root.Plo + -rm -f ./$(DEPDIR)/round_near_x.Plo + -rm -f ./$(DEPDIR)/round_p.Plo + -rm -f ./$(DEPDIR)/round_prec.Plo + -rm -f ./$(DEPDIR)/scale2.Plo + -rm -f ./$(DEPDIR)/sec.Plo + -rm -f ./$(DEPDIR)/sech.Plo + -rm -f ./$(DEPDIR)/set.Plo + -rm -f ./$(DEPDIR)/set_d.Plo + -rm -f ./$(DEPDIR)/set_d128.Plo + -rm -f ./$(DEPDIR)/set_d64.Plo + -rm -f ./$(DEPDIR)/set_dfl_prec.Plo + -rm -f ./$(DEPDIR)/set_exp.Plo + -rm -f ./$(DEPDIR)/set_f.Plo + -rm -f ./$(DEPDIR)/set_float128.Plo + -rm -f ./$(DEPDIR)/set_flt.Plo + -rm -f ./$(DEPDIR)/set_inf.Plo + -rm -f ./$(DEPDIR)/set_ld.Plo + -rm -f ./$(DEPDIR)/set_nan.Plo + -rm -f ./$(DEPDIR)/set_prc_raw.Plo + -rm -f ./$(DEPDIR)/set_prec.Plo + -rm -f ./$(DEPDIR)/set_q.Plo + -rm -f ./$(DEPDIR)/set_rnd.Plo + -rm -f ./$(DEPDIR)/set_si.Plo + -rm -f ./$(DEPDIR)/set_si_2exp.Plo + -rm -f ./$(DEPDIR)/set_sj.Plo + -rm -f ./$(DEPDIR)/set_str.Plo + -rm -f ./$(DEPDIR)/set_str_raw.Plo + -rm -f ./$(DEPDIR)/set_ui.Plo + -rm -f ./$(DEPDIR)/set_ui_2exp.Plo + -rm -f ./$(DEPDIR)/set_uj.Plo + -rm -f ./$(DEPDIR)/set_z.Plo + -rm -f ./$(DEPDIR)/set_z_exp.Plo + -rm -f ./$(DEPDIR)/set_zero.Plo + -rm -f ./$(DEPDIR)/setmax.Plo + -rm -f ./$(DEPDIR)/setmin.Plo + -rm -f ./$(DEPDIR)/setsign.Plo + -rm -f ./$(DEPDIR)/sgn.Plo + -rm -f ./$(DEPDIR)/si_op.Plo + -rm -f ./$(DEPDIR)/signbit.Plo + -rm -f ./$(DEPDIR)/sin.Plo + -rm -f ./$(DEPDIR)/sin_cos.Plo + -rm -f ./$(DEPDIR)/sinh.Plo + -rm -f ./$(DEPDIR)/sinh_cosh.Plo + -rm -f ./$(DEPDIR)/sqr.Plo + -rm -f ./$(DEPDIR)/sqrt.Plo + -rm -f ./$(DEPDIR)/sqrt_ui.Plo + -rm -f ./$(DEPDIR)/stack_interface.Plo + -rm -f ./$(DEPDIR)/strtofr.Plo + -rm -f ./$(DEPDIR)/sub.Plo + -rm -f ./$(DEPDIR)/sub1.Plo + -rm -f ./$(DEPDIR)/sub1sp.Plo + -rm -f ./$(DEPDIR)/sub_d.Plo + -rm -f ./$(DEPDIR)/sub_ui.Plo + -rm -f ./$(DEPDIR)/subnormal.Plo + -rm -f ./$(DEPDIR)/sum.Plo + -rm -f ./$(DEPDIR)/swap.Plo + -rm -f ./$(DEPDIR)/tan.Plo + -rm -f ./$(DEPDIR)/tanh.Plo + -rm -f ./$(DEPDIR)/total_order.Plo + -rm -f ./$(DEPDIR)/ubf.Plo + -rm -f ./$(DEPDIR)/uceil_exp2.Plo + -rm -f ./$(DEPDIR)/uceil_log2.Plo + -rm -f ./$(DEPDIR)/ufloor_log2.Plo + -rm -f ./$(DEPDIR)/ui_div.Plo + -rm -f ./$(DEPDIR)/ui_pow.Plo + -rm -f ./$(DEPDIR)/ui_pow_ui.Plo + -rm -f ./$(DEPDIR)/ui_sub.Plo + -rm -f ./$(DEPDIR)/urandom.Plo + -rm -f ./$(DEPDIR)/urandomb.Plo + -rm -f ./$(DEPDIR)/vasprintf.Plo + -rm -f ./$(DEPDIR)/version.Plo + -rm -f ./$(DEPDIR)/volatile.Plo + -rm -f ./$(DEPDIR)/yn.Plo + -rm -f ./$(DEPDIR)/zeta.Plo + -rm -f ./$(DEPDIR)/zeta_ui.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -1029,38 +1710,40 @@ ps: ps-am ps-am: -uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES \ + uninstall-nodist_includeHEADERS .MAKE: all check install install-am install-strip -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am \ - install-includeHEADERS install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ +.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ + clean-generic clean-libLTLIBRARIES clean-libtool \ + clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-includeHEADERS install-info \ + install-info-am install-libLTLIBRARIES install-man \ + install-nodist_includeHEADERS install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ - uninstall-libLTLIBRARIES + uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS .PRECIOUS: Makefile -# Important note: If for some reason, srcdir is read-only at build time -# (and you use objdir != srcdir), then you need to rebuild get_patches.c -# (with "make get_patches.c") just after patching the MPFR source. This -# should not be a problem in practice, in particular because "make dist" -# automatically rebuilds get_patches.c before generating the archives. -$(srcdir)/get_patches.c: $(top_srcdir)/PATCHES $(top_srcdir)/tools/get_patches.sh +# Since we do not require GNU "make", let's select the POSIX behavior to +# uniformize the behavior a bit more with various "make" implementations +# and ease maintenance. This target should be removed only if one day, +# we need to require GNU "make". +.POSIX: +get_patches.c: $(GET_PATCHES_SH) $(PATCHES) @echo "NOT REBUILDING $@" NetBSD_DISABLED_get_patches.c: - (cd $(top_srcdir) && ./tools/get_patches.sh) > $@ || rm -f $@ + $(GET_PATCHES_SH) $(PATCHES) > $@ || { rm -f $@; exit 1; } # Check that MPFR does not use GMP internal symbols. Of course, do not run # this rule if you use --with-gmp-build or --enable-gmp-internals. This @@ -1089,12 +1772,12 @@ check-gmp-symbols: $(LTLIBRARIES) # For instance, with r11968, and # ./configure --with-gmp-build=... CC=tcc # the symbol __gmpn_clz_tab is defined, which is wrong. -# Note: the "grep -v '@plt$$'" below is for tcc. +# Note: the "$(GREP) -v '@plt$$'" below is for tcc. check-exported-symbols: $(LTLIBRARIES) if [ -f "$(LIBMPFRSO)" ]; then \ gsymbols=`$(NM) -gP "$(LIBMPFRSO)" | perl -ne \ '/^(__gmp[a-z]?_[_0-9A-Za-z]*) +[A-TV-Z]/ and print " $$1"' | \ - grep -v '@plt$$'`; \ + { $(GREP) -v '@plt$$' || true ; }`; \ if [ -n "$$gsymbols" ]; then \ echo "MPFR defines symbols with a GMP reserved prefix:$$gsymbols"; \ exit 1; \ diff --git a/external/lgpl3/mpfr/dist/src/amd/amdfam10/mparam.h b/external/lgpl3/mpfr/dist/src/amd/amdfam10/mparam.h deleted file mode 100644 index 0651dd64572f..000000000000 --- a/external/lgpl3/mpfr/dist/src/amd/amdfam10/mparam.h +++ /dev/null @@ -1,236 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2011-07-31, gcc 4.6.1 */ -/* contributed by Jim Cloos with GMP 5.0.2 on a - "2009 or 2010 vintage phenom-II", where __amd64, __amd64__, - __k8, __k8__, __x86_64 and __x86_64__ are also defined. -*/ - - -#define MPFR_MULHIGH_TAB \ - -1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8,9,10,11, \ - 12,12,12,14,14,14,16,16,18,18,19,20,18,22,20,20, \ - 20,20,20,20,22,22,22,24,28,28,28,28,28,28,32,32, \ - 30,32,32,32,32,32,32,38,38,38,38,40,40,40,40,40, \ - 40,40,44,44,48,48,44,46,48,48,56,56,56,56,56,56, \ - 56,56,56,60,64,60,64,64,64,64,64,64,64,64,64,64, \ - 60,64,64,72,64,64,72,72,64,64,64,72,80,72,80,76, \ - 76,80,76,80,80,80,80,76,80,79,80,80,80,80,80,80, \ - 81,80,86,93,90,87,93,93,93,93,92,93,93,92,93,92, \ - 93,93,93,93,102,105,105,104,105,105,105,105,105,105,111,116, \ - 111,110,111,117,117,111,114,116,117,117,117,117,117,116,116,117, \ - 116,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117, \ - 117,117,117,117,117,117,117,117,117,148,148,156,148,148,148,148, \ - 148,156,156,156,155,156,156,156,156,156,156,156,156,156,155,156, \ - 156,156,156,156,172,156,172,172,172,156,172,156,172,172,172,172, \ - 172,172,172,172,172,172,172,180,172,180,172,172,172,188,188,172, \ - 188,188,188,188,188,188,179,188,188,188,188,188,188,188,188,188, \ - 188,220,220,220,220,188,220,220,220,220,220,220,220,220,220,220, \ - 220,220,220,220,220,220,220,220,220,220,220,220,220,219,220,220, \ - 220,220,220,220,236,220,220,220,252,252,236,252,252,252,252,236, \ - 236,236,252,236,252,252,236,252,236,252,252,252,252,251,250,252, \ - 252,252,252,252,252,252,252,252,252,252,252,252,251,252,252,251, \ - 252,252,252,252,252,252,252,252,252,252,252,252,252,252,284,284, \ - 252,284,284,284,284,284,284,284,284,284,284,284,284,284,283,284, \ - 284,283,284,284,300,300,300,284,284,300,284,284,298,300,316,316, \ - 300,284,300,316,300,316,300,284,316,316,316,316,300,316,300,316, \ - 316,300,316,300,316,316,315,316,316,316,316,316,316,316,316,316, \ - 316,316,316,316,313,316,316,316,316,316,316,316,320,316,320,368, \ - 316,316,316,368,368,368,367,368,368,368,368,368,368,368,368,368, \ - 367,367,368,368,368,368,368,368,368,368,368,368,368,368,368,368, \ - 368,368,368,366,368,368,367,368,368,367,368,368,368,368,368,368, \ - 367,366,367,368,368,367,368,368,368,368,368,368,368,368,368,368, \ - 368,368,368,368,368,368,368,368,416,368,368,368,368,368,368,416, \ - 368,416,415,416,416,368,416,416,416,415,415,416,416,416,416,416, \ - 416,416,415,416,416,415,416,416,440,416,415,416,416,415,416,415, \ - 416,416,416,474,415,416,416,415,416,416,416,416,416,416,474,474, \ - 488,474,440,440,488,488,504,473,504,474,504,504,503,503,503,503, \ - 503,504,501,504,504,503,474,474,503,504,504,503,504,488,488,488, \ - 503,503,504,504,504,504,504,504,501,503,504,503,504,504,499,504, \ - 504,503,504,504,504,504,503,504,504,504,488,504,504,504,474,504, \ - 501,504,504,501,504,503,504,504,504,504,504,504,504,504,503,504, \ - 504,503,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,503,568,568,568,504,504,504,504,568,504, \ - 568,567,568,568,568,568,567,568,567,568,567,600,568,600,568,568, \ - 568,568,568,567,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,567,568,568,568,568,568,568,568,568, \ - 568,568,568,632,600,568,568,568,565,568,568,568,632,568,568,600, \ - 600,631,600,632,600,632,632,600,600,632,600,600,632,600,600,600, \ - 632,616,600,632,600,632,632,600,600,600,600,600,600,632,600,632, \ - 632,616,632,632,632,616,632,632,632,627,631,629,632,632,631,632, \ - 632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632, \ - 632,632,632,632,687,629,688,632,632,632,632,632,632,632,632,632, \ - 688,712,632,688,712,688,712,712,688,688,688,711,712,712,680,736, \ - 712,712,712,688,688,712,712,712,712,712,712,728,712,736,736,711, \ - 733,736,735,711,728,728,736,728,712,736,736,710,734,736,736,712, \ - 712,736,712,712,719,728,712,712,712,734,733,726,736,736,736,735, \ - 736,736,736,712,736,736,736,736,736,736,727,736,736,736,735,736, \ - 731,736,736,736,736,736,736,736,733,712,736,736,736,736,736,712, \ - 712,736,736,784,712,712,736,725,760,760,736,727,736,830,736,784, \ - 728,736,727,783,832,736,734,830,736,736,831,736,736,830,829,832, \ - 832,832,831,736,782,784,832,828,736,824,736,832,832,831,736,824, \ - 824,832,832,832,832,832,832,825,832,832,832,824,832,832,832,828, \ - 822,824,831,829,832,827,832,832,832,831,832,829,829,832,824,832, \ - 830,832,832,832,832,832,830,832,832,832,832,828,855,832,830,830 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,-1,-1,-1,-1,-1,-1,7,8,9,8,9,9, \ - 11,11,11,13,13,14,15,16,17,17,19,19,16,19,17,19, \ - 19,18,19,19,21,21,21,23,23,25,25,23,25,25,25,25, \ - 28,27,27,29,29,28,31,31,34,34,34,34,38,36,38,38, \ - 42,42,42,42,42,42,44,46,42,46,44,50,46,50,42,50, \ - 44,44,46,50,50,50,50,50,50,50,50,50,50,50,50,50, \ - 52,50,54,54,54,54,56,56,56,56,58,56,56,58,58,60, \ - 60,62,62,67,62,68,72,68,68,72,68,76,72,72,72,76, \ - 76,76,76,76,84,72,84,76,76,76,84,76,76,84,84,84, \ - 92,84,84,84,84,84,92,92,92,92,92,92,92,92,92,100, \ - 92,92,100,100,92,100,100,100,100,100,100,92,100,100,92,100, \ - 100,100,92,92,100,92,100,104,100,108,100,100,100,108,104,100, \ - 100,104,100,108,108,108,112,108,112,112,112,123,112,123,112,135, \ - 116,123,123,135,123,135,135,135,135,135,135,135,135,135,135,135, \ - 135,135,147,135,135,135,135,147,147,147,147,147,147,147,147,147, \ - 147,147,147,147,147,147,147,147,147,147,147,159,147,147,147,147, \ - 165,147,147,159,153,147,147,147,165,159,147,147,165,153,147,159, \ - 165,165,165,165,165,171,171,159,165,159,165,165,165,165,165,165, \ - 171,165,171,171,165,177,171,171,189,183,171,165,165,165,183,165, \ - 165,165,183,183,186,189,165,189,165,171,165,165,189,165,183,183, \ - 183,189,183,201,201,189,189,183,189,183,195,189,189,189,183,213, \ - 183,183,195,195,213,189,189,189,201,201,189,195,213,225,225,201, \ - 201,213,213,195,213,201,225,225,225,225,225,224,225,225,213,225, \ - 225,225,225,225,225,225,225,225,225,225,225,225,225,225,249,225, \ - 249,249,248,225,249,249,249,249,249,249,225,249,249,248,249,249, \ - 249,249,249,248,249,249,249,249,249,249,249,249,249,249,249,249, \ - 249,249,249,249,249,249,249,249,249,249,249,249,249,249,249,249, \ - 273,273,273,273,273,273,273,273,273,273,273,273,273,273,273,273, \ - 273,273,273,273,273,273,273,273,273,273,297,297,297,297,297,296, \ - 297,297,297,297,297,297,297,297,297,297,297,297,297,297,297,297, \ - 297,297,297,297,297,297,297,297,297,273,273,273,273,273,273,296, \ - 273,309,297,321,321,297,297,297,297,297,297,296,297,297,297,296, \ - 297,296,297,297,297,297,297,297,297,297,297,297,297,297,309,297, \ - 297,297,309,297,297,297,297,297,297,297,321,297,321,333,297,366, \ - 333,333,333,366,333,296,333,333,333,297,333,333,333,297,297,321, \ - 321,345,402,345,402,402,402,402,402,402,402,402,402,402,402,402, \ - 401,401,402,402,402,402,402,402,402,402,402,402,401,402,402,401, \ - 402,402,402,402,401,402,402,402,402,402,401,402,402,401,401,402, \ - 401,401,393,402,402,438,401,402,402,401,401,402,401,402,402,402, \ - 402,401,402,402,402,402,402,402,402,402,402,401,402,401,402,401, \ - 402,402,400,402,402,402,402,402,402,402,438,438,438,438,438,438, \ - 438,438,402,438,402,402,402,402,438,438,402,438,401,402,438,438, \ - 438,438,438,438,438,438,401,437,438,402,401,402,438,401,402,402, \ - 402,402,402,402,401,437,438,438,438,437,438,438,401,402,402,438, \ - 438,438,402,402,402,402,401,402,402,437,438,438,438,438,438,438, \ - 438,438,438,438,437,437,438,438,438,438,438,438,438,437,437,438, \ - 437,438,438,438,438,402,438,402,438,438,438,438,438,438,437,438, \ - 456,438,438,438,438,437,438,438,438,438,437,438,438,438,437,438, \ - 438,438,438,473,437,456,438,438,438,438,438,437,438,438,438,438, \ - 438,438,437,438,438,438,438,438,456,474,455,456,456,474,473,492, \ - 456,474,456,474,474,474,474,474,536,512,474,512,474,536,474,474, \ - 536,474,536,536,474,474,536,536,536,536,536,536,536,536,536,536, \ - 536,534,536,536,536,535,536,536,536,536,535,536,536,536,536,536, \ - 536,535,536,535,536,536,512,536,536,536,536,536,536,535,536,534, \ - 535,584,536,536,536,534,535,536,536,536,536,536,536,536,536,534, \ - 536,536,536,536,535,536,584,535,536,584,536,536,536,536,584,584, \ - 584,584,536,584,584,584,584,584,584,584,583,584,582,584,584,584, \ - 584,584,584,584,584,582,583,584,584,584,584,584,584,584,584,584, \ - 584,583,584,584,696,584,584,583,584,584,696,726,696,584,584,584, \ - 728,696,696,696,584,728,696,584,696,696,694,696,696,696,727,584, \ - 695,694,584,696,696,695,728,696,696,696,696,696,694,696,727,695, \ - 696,695,695,696,696,728,696,696,695,696,696,696,696,696,696,696, \ - 727,696,696,696,696,695,696,728,727,696,695,727,696,726,727,726, \ - 727,728,728,727,694,727,728,728,728,727,727,728,727,728,727,728 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,8,9,10,11,10,13,14,15, \ - 14,15,18,19,18,14,15,18,18,18,19,17,18,19,18,19, \ - 22,21,23,21,22,22,23,25,26,27,26,27,27,27,30,30, \ - 30,34,30,34,32,33,34,31,30,34,37,34,38,38,38,38, \ - 38,38,42,43,42,42,39,38,42,44,43,42,40,45,46,46, \ - 46,45,46,43,44,50,48,48,48,46,53,51,50,50,50,50, \ - 53,51,53,53,53,53,55,55,55,55,55,55,60,64,60,60, \ - 62,63,64,65,60,64,68,72,64,68,68,64,64,68,72,66, \ - 67,69,71,72,76,80,71,72,76,74,74,76,76,77,76,80, \ - 79,84,84,84,78,84,88,88,92,84,80,92,92,80,88,84, \ - 92,88,91,92,92,92,93,95,92,90,92,92,92,92,92,96, \ - 96,96,92,92,92,92,96,96,102,96,95,110,96,96,100,100, \ - 112,100,100,106,106,110,112,110,110,111,110,120,110,110,112,120, \ - 110,120,120,120,112,120,128,128,128,128,124,128,128,120,128,128, \ - 127,128,124,128,128,128,128,126,128,128,128,128,136,140,128,128, \ - 128,128,136,144,128,128,144,144,128,144,144,144,144,128,152,152, \ - 152,152,152,160,160,152,144,144,152,151,144,143,152,144,144,152, \ - 152,144,152,152,152,152,151,152,160,158,144,160,160,160,160,160, \ - 152,160,152,152,152,160,152,160,160,156,158,160,160,160,160,160, \ - 160,160,160,160,168,160,160,160,160,160,159,160,160,160,176,176, \ - 180,176,176,184,184,186,184,184,184,184,186,184,186,172,176,192, \ - 184,184,184,184,185,176,176,185,184,185,186,183,184,184,181,191, \ - 192,184,184,185,192,192,192,186,192,192,192,192,192,191,196,192, \ - 192,192,192,192,196,190,192,192,200,192,198,220,222,204,200,222, \ - 220,220,222,222,224,222,222,219,222,222,224,224,220,222,220,224, \ - 220,221,222,220,232,222,221,232,222,220,224,232,220,232,222,232, \ - 224,220,220,222,222,222,221,222,220,220,222,222,224,224,224,222, \ - 220,224,224,232,224,222,222,232,224,222,223,224,224,224,231,232, \ - 256,232,231,232,239,232,239,234,238,238,239,232,239,232,256,256, \ - 288,288,248,256,256,256,256,256,256,239,255,256,256,256,256,256, \ - 256,256,256,256,256,256,296,256,254,256,256,272,272,272,256,256, \ - 288,272,256,256,280,296,288,280,288,288,296,280,288,288,288,294, \ - 296,296,294,304,288,287,288,296,304,304,288,303,304,296,288,312, \ - 312,312,312,288,288,312,288,288,312,320,305,288,320,320,288,312, \ - 311,312,312,312,304,304,312,304,319,296,288,310,312,288,288,320, \ - 304,304,304,288,300,312,309,304,304,311,288,296,296,320,312,311, \ - 296,320,312,304,304,312,312,320,296,320,312,296,305,312,304,303, \ - 304,312,303,312,304,311,312,312,320,312,311,320,320,320,320,320, \ - 312,320,312,312,312,320,312,312,320,320,319,320,320,320,320,320, \ - 320,320,320,320,320,320,320,320,320,320,320,320,320,320,352,336, \ - 344,352,352,344,360,360,343,336,352,366,370,352,360,368,376,360, \ - 360,360,367,368,360,352,371,360,368,368,372,352,352,352,352,352, \ - 384,370,360,368,384,372,375,360,368,368,368,368,368,368,384,372, \ - 352,372,352,368,366,376,352,367,384,368,360,368,360,384,371,376, \ - 360,366,368,368,360,369,371,367,368,369,384,376,368,372,372,384, \ - 440,368,376,384,372,376,440,440,376,440,368,369,384,370,440,440, \ - 440,392,440,440,384,384,440,440,448,440,440,440,440,440,440,440, \ - 440,440,384,440,439,440,384,384,440,440,440,440,440,440,439,448, \ - 440,440,440,440,440,440,440,440,440,440,440,440,440,440,440,440, \ - 440,440,440,440,440,440,439,440,440,440,440,440,440,440,440,440, \ - 440,440,440,440,440,440,440,440,440,440,440,440,440,440,440,480, \ - 440,440,440,440,468,480,440,440,440,440,440,464,440,440,440,440, \ - 480,440,440,440,440,448,439,440,440,440,440,440,440,448,440,448, \ - 512,439,440,448,440,440,440,438,440,440,440,440,496,440,465,440, \ - 440,466,440,440,440,440,512,440,440,440,440,464,440,440,448,466, \ - 512,496,512,512,512,448,512,447,448,468,472,448,480,464,480,512, \ - 466,466,496,468,512,468,496,480,512,512,496,467,472,512,512,512, \ - 512,468,512,512,512,512,512,478,512,472,512,512,512,496,512,512, \ - 512,512,512,512,496,480,496,496,512,512,512,496,480,512,544,480, \ - 576,512,512,576,512,512,512,576,512,512,496,496,512,480,576,576, \ - 512,510,496,568,576,576,496,560,576,511,512,576,576,512,512,576, \ - 560,496,576,512,512,512,512,512,512,576,576,512,512,576,512,512, \ - 512,512,576,512,512,512,508,512,576,512,576,576,512,576,592,512, \ - 568,512,576,568,576,576,576,512,576,576,592,576,592,512,608,576 \ - -#define MPFR_MUL_THRESHOLD 17 /* limbs */ -#define MPFR_SQR_THRESHOLD 19 /* limbs */ -#define MPFR_DIV_THRESHOLD 28 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 1031 /* bits */ -#define MPFR_EXP_THRESHOLD 10625 /* bits */ -#define MPFR_SINCOS_THRESHOLD 26682 /* bits */ -#define MPFR_AI_THRESHOLD1 -11328 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 1045 -#define MPFR_AI_THRESHOLD3 17871 -/* Tuneup completed successfully, took 562 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/amd/athlon/mparam.h b/external/lgpl3/mpfr/dist/src/amd/athlon/mparam.h deleted file mode 100644 index 1ae1400c50c6..000000000000 --- a/external/lgpl3/mpfr/dist/src/amd/athlon/mparam.h +++ /dev/null @@ -1,90 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#define MPFR_MULHIGH_TAB \ - -1,0,-1,0,-1,0,-1,-1,0,-1,-1,0,0,0,0,10, \ - 0,12,13,14,15,16,0,0,0,0,0,19,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32, \ - 30,32,30,34,32,32,36,34,36,36,38,38,42,38,38,42, \ - 40,38,42,46,42,42,42,44,44,44,44,44,48,50,46,46, \ - 60,50,50,48,50,56,56,56,56,56,56,56,60,60,64,60, \ - 64,64,60,60,60,72,64,64,68,72,76,72,76,72,72,76, \ - 75,76,76,72,76,72,75,72,72,72,84,76,84,75,72,76, \ - 84,80,76,84,84,76,76,76,76,88,84,88,80,84,83,96, \ - 84,96,92,84,88,91,92,88,92,90,96,96,92,91,92,96, \ - 96,120,95,100,112,120,100,119,112,120,120,112,119,112,119,119, \ - 120,118,119,119,119,118,119,120,128,127,120,128,128,120,120,127, \ - 120,128,128,128,128,120,128,127,120,128,128,127,128,127,144,136, \ - 128,144,152,152,152,136,144,144,144,136,151,152,144,152,128,151, \ - 144,152,144,144,151,144,150,150,136,151,152,143,143,143,142,168, \ - 144,144,168,151,168,144,152,151,152,152,160,152,151,152,160,151, \ - 152,151,152,167,152,152,166,152,167,160,168,204,160,160,168,168, \ - 204,176,202,167,168,166,167,168,204,184,202,204,204,204,204,192, \ - 184,192,204,202,202,216,204,227,202,204,216,203,203,204,203,227, \ - 202,204,202,202,202,203,202,215,204,202,203,202,202,215,228,214, \ - 226,214,228,214,228,215,228,216,226,214,228,225,226,228,226,226, \ - 226,215,216,216,226,225,226,227,216,227,240,216,252,252,226,227, \ - 228,239,227,250,227,226,227,227,252,238,228,239,252,227,228,228, \ - 252,226,246,228,227,227,252,247,250,263,262,250,252,250,250,252, \ - 250,288,288,250,250,250,251,264,264,271,287,276,250,288,252,286, \ - 251,287,288,251,276,274,288,262,263,263,282,252,288,252,276,284, \ - 287,274,264,274,288,275,275,274,274,288,276,264,273,286,274,276, \ - 300,287,288,286,286,276,288,285,275,300,275,273,275,299,300,299, \ - 279,336,336,286,287,284,360,359,336,335,288,360,333,359,334,335, \ - 335,287,359,335,336,336,359,333,334,359,360,288,360,332,335,336, \ - 335,336,336,333,336,335,336,359,334,334,335,360,336,334,356,357, \ - 335,336,358,359,359,336,335,336,334,355,384,356,354,384,334,357, \ - 336,359,384,359,360,356,384,382,336,383,384,384,354,355,383,384, \ - 382,359,384,382,382,383,383,359,381,382,383,356,384,382,381,384, \ - 357,384,358,357,358,358,380,383,382,382,383,360,360,381,382,360, \ - 377,360,378,360,360,381,382,383,381,380,383,383,360,382,383,380, \ - 383,383,384,381,379,360,381,381,382,431,380,380,378,380,384,381, \ - 382,382,384,407,384,382,379,384,430,431,383,384,408,384,456,431, \ - 431,455,431,428,384,454,455,403,432,383,407,430,430,456,408,427, \ - 455,455,456,455,432,431,431,429,455,432,432,424,430,427,427,429, \ - 452,454,426,455,456,431,430,454,452,454,431,456,431,428,455,430, \ - 454,430,432,455,454,442,443,432,443,431,451,452,456,430,451,456, \ - 444,455,449,456,432,454,449,454,502,432,448,504,450,503,503,453, \ - 454,502,446,452,453,454,455,499,504,453,456,504,454,453,503,455, \ - 456,456,500,478,502,454,456,499,478,454,480,499,501,496,502,455, \ - 499,502,503,456,478,500,501,500,479,503,504,451,452,479,454,455, \ - 502,503,504,504,454,499,503,501,454,503,456,503,504,501,455,502, \ - 503,503,502,504,610,503,504,574,480,551,528,504,609,576,480,503, \ - 496,502,503,552,551,552,551,503,504,503,610,608,609,610,611,608, \ - 608,551,648,611,612,550,576,572,608,611,610,606,608,611,610,574, \ - 575,576,606,607,606,606,608,606,606,575,576,604,604,604,608,609, \ - 606,606,606,608,604,604,611,604,604,576,610,606,610,606,604,610, \ - 606,612,604,608,610,609,604,608,606,647,612,610,604,606,648,610, \ - 610,606,646,608,604,647,606,647,606,609,610,647,648,609,641,611, \ - 643,611,643,648,643,640,646,611,644,644,645,611,642,646,611,612, \ - 640,647,610,611,610,611,606,647,648,647,648,644,682,642,682,683, \ - 610,611,680,678,642,681,682,647,682,612,682,648,611,665,680,683, \ - 609,646,666,676,680,646,679,647,646,646,648,679,684,611,612,643, \ - 684,645,646,647,683,647,608,645,682,647,682,646,610,648,682,610, \ - 684,612,612,683,684,647,647,646,680,646,646,745,648,646,644,647, \ - 648,647,678,646,647,683,642,682,682,684,646,645,642,647,646,677, \ - 646,647,683,678,680,646,646,643,681,647,683,645,666,755,756,645, \ - 643,647,646,647,647,648,674,755,756,674,647,643,680,682,684,680, \ - 680,682,682,675,682,677,666,683,680,682,682,684,680,681,674,674 \ - -#define MPFR_MUL_THRESHOLD 19 -#define MPFR_EXP_2_THRESHOLD 411 /* bits */ -#define MPFR_EXP_THRESHOLD 45200 /* bits */ diff --git a/external/lgpl3/mpfr/dist/src/amd/k8/mparam.h b/external/lgpl3/mpfr/dist/src/amd/k8/mparam.h deleted file mode 100644 index 7953e4a9bb85..000000000000 --- a/external/lgpl3/mpfr/dist/src/amd/k8/mparam.h +++ /dev/null @@ -1,236 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2011-07-31, gcc 4.3.2 */ -/* gcc11.fsffrance.org (Dual-Core AMD Opteron(tm) Processor 2212) - with gmp 5.0.2. - Keith Briggs sent similar parameters obtained on a AMD Athlon - (__tune_k8__, __x86_64, __amd64, __k8) */ - - -#define MPFR_MULHIGH_TAB \ - -1,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,9,11,11, \ - 12,12,11,15,14,14,15,16,18,18,19,20,18,19,19,20, \ - 22,22,23,24,26,30,28,28,32,30,30,32,32,30,32,32, \ - 32,30,30,32,32,38,32,32,36,40,40,40,36,38,40,38, \ - 40,44,40,44,44,44,44,48,48,46,48,48,56,56,56,56, \ - 56,56,56,60,64,60,60,64,64,64,64,64,64,64,64,64, \ - 72,72,72,72,72,72,72,72,72,72,72,72,80,80,80,80, \ - 80,80,80,80,80,80,80,80,80,80,80,80,93,80,93,93, \ - 93,76,80,93,80,93,93,90,93,93,93,93,93,93,93,93, \ - 93,93,111,105,93,117,105,105,117,117,111,117,117,105,117,117, \ - 117,105,117,117,117,117,117,117,117,117,117,117,117,117,117,117, \ - 117,117,117,117,116,117,116,117,117,117,117,117,117,117,117,117, \ - 117,117,140,117,140,140,140,140,140,148,148,147,140,156,156,156, \ - 148,148,156,148,156,156,156,156,156,155,156,155,156,155,156,156, \ - 156,156,156,156,156,156,156,156,172,172,172,156,172,172,172,172, \ - 172,172,172,172,180,180,180,180,180,180,180,188,188,188,188,188, \ - 180,188,188,188,188,187,188,188,188,188,188,188,188,188,188,188, \ - 188,188,188,188,188,188,188,188,188,188,188,188,188,220,220,204, \ - 220,220,220,219,220,220,220,220,220,219,220,219,220,219,220,220, \ - 220,236,236,220,236,219,233,236,233,252,236,252,236,252,252,236, \ - 235,236,236,252,252,236,236,252,252,236,252,252,236,251,250,251, \ - 252,252,251,252,252,252,252,252,252,252,252,252,252,252,252,252, \ - 252,252,284,252,284,284,284,284,284,252,284,284,284,284,284,284, \ - 283,284,284,284,284,284,284,284,284,284,284,283,284,284,284,284, \ - 284,284,283,284,284,284,284,284,284,284,284,284,284,300,284,300, \ - 300,316,300,300,300,316,300,300,316,316,316,316,316,316,316,316, \ - 316,316,316,316,316,316,316,316,316,316,316,316,316,316,316,316, \ - 316,315,316,316,315,316,316,316,315,316,316,316,316,316,316,316, \ - 316,316,316,368,316,316,367,368,368,368,368,368,368,368,368,368, \ - 368,368,368,368,368,368,368,368,368,368,368,368,368,368,368,368, \ - 368,368,368,368,368,368,367,368,368,368,368,367,368,367,367,368, \ - 368,367,367,368,367,368,368,367,368,368,368,367,368,368,368,368, \ - 367,368,416,415,416,416,416,416,416,416,415,416,416,416,416,416, \ - 416,416,416,416,416,416,415,416,415,416,415,416,416,416,416,416, \ - 416,415,416,416,415,416,416,415,416,416,440,416,416,416,440,416, \ - 415,416,415,416,464,464,464,464,464,464,463,464,464,464,463,464, \ - 464,464,464,464,464,463,464,464,474,474,464,464,473,474,474,504, \ - 474,474,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,503,504,504,504,504,504,504, \ - 503,504,504,504,504,504,503,504,504,504,504,504,503,504,504,503, \ - 504,504,504,504,504,504,504,504,503,504,504,504,504,504,503,504, \ - 504,504,504,504,568,568,568,504,568,568,568,568,568,568,568,568, \ - 568,567,568,568,568,567,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,567,567,568,566,568,568,568,567, \ - 568,568,568,568,568,568,568,568,568,568,567,568,568,567,568,568, \ - 568,568,568,568,567,568,568,566,567,568,568,568,568,568,568,568, \ - 568,567,568,568,567,568,567,568,567,568,567,568,567,568,632,568, \ - 600,632,632,600,631,632,632,632,632,631,600,600,632,632,600,631, \ - 632,632,632,632,632,632,631,632,632,632,631,632,631,632,632,632, \ - 632,632,631,632,632,631,632,632,632,631,632,632,632,632,631,632, \ - 632,632,632,632,630,632,632,632,632,632,631,632,631,632,631,632, \ - 632,632,632,632,632,632,632,632,631,632,632,632,632,632,632,631, \ - 632,632,632,631,632,632,632,736,632,631,632,736,632,632,632,632, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,734,736,736,735,736,736,735,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,735,736,736,736,736,736,736,736,735,736, \ - 736,736,735,736,735,736,736,736,735,736,736,736,736,736,736,736, \ - 736,736,736,735,736,736,736,735,736,736,736,736,736,735,736,736, \ - 736,736,736,736,736,736,736,736,736,735,736,735,736,832,736,832, \ - 832,832,832,832,831,832,832,831,832,832,832,832,832,832,831,832, \ - 831,832,831,832,832,831,832,832,832,832,832,832,831,832,832,832, \ - 831,832,832,832,832,832,831,832,832,832,832,832,831,832,831,832, \ - 832,832,831,832,831,832,831,832,832,832,832,832,832,832,831,832 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,0,-1,-1,-1,-1,-1,7,7,8,9,9,11, \ - 11,11,11,11,13,13,15,15,17,17,18,17,17,17,18,20, \ - 20,21,23,23,20,21,23,23,24,25,23,23,24,25,26,25, \ - 28,27,28,29,28,31,34,31,34,34,34,34,34,34,34,34, \ - 40,34,40,36,40,42,40,42,40,40,42,42,48,48,46,46, \ - 42,46,48,48,46,50,46,52,54,54,48,56,54,50,54,52, \ - 50,54,54,52,54,54,58,58,62,64,58,58,58,64,62,64, \ - 58,64,66,72,68,68,68,68,68,62,66,72,72,72,68,68, \ - 72,72,68,72,72,72,72,72,80,84,80,80,80,84,80,80, \ - 80,84,84,84,84,84,92,80,80,84,92,84,92,92,92,96, \ - 100,92,100,92,96,92,92,96,100,100,96,96,96,100,100,96, \ - 96,96,92,92,96,96,108,100,96,100,100,112,112,112,112,112, \ - 112,112,108,112,100,104,112,116,104,116,116,108,112,112,112,116, \ - 112,112,112,112,112,141,135,141,116,135,135,135,141,141,141,141, \ - 141,141,141,141,141,141,135,135,141,141,147,141,141,141,140,141, \ - 141,141,147,147,141,147,147,147,147,147,147,147,147,147,147,159, \ - 153,147,147,159,159,159,159,159,159,159,159,159,165,171,171,171, \ - 165,170,171,171,165,171,171,171,165,171,171,171,183,171,171,171, \ - 183,183,171,183,171,183,183,183,183,183,183,183,189,189,183,195, \ - 171,171,188,171,171,195,171,171,171,195,195,182,195,177,182,183, \ - 183,181,182,183,183,189,183,194,195,195,194,195,195,195,195,195, \ - 195,195,213,195,195,195,195,195,189,195,195,195,195,195,195,195, \ - 212,195,213,195,195,195,213,195,195,195,195,195,195,213,213,201, \ - 195,195,195,213,213,213,213,213,212,213,213,213,213,213,213,213, \ - 237,212,213,213,213,213,213,225,213,213,213,249,213,249,237,237, \ - 237,237,237,249,237,237,237,237,249,237,249,237,237,237,249,249, \ - 249,236,237,249,249,249,249,249,249,249,249,249,249,249,249,249, \ - 249,273,273,273,273,273,273,272,273,273,273,273,273,273,273,273, \ - 273,273,273,273,273,273,273,285,273,284,285,285,285,285,297,284, \ - 285,297,285,297,297,297,297,297,297,297,297,296,297,296,297,296, \ - 297,297,297,297,297,297,297,273,297,273,309,273,273,273,273,320, \ - 321,321,321,285,285,285,285,285,284,285,297,285,297,297,297,297, \ - 297,297,333,297,297,297,296,297,309,297,297,297,297,285,309,348, \ - 297,297,348,348,285,321,297,321,321,297,320,321,321,297,297,321, \ - 297,321,333,366,333,333,309,333,333,333,332,333,297,321,321,321, \ - 321,348,321,345,348,348,348,366,348,347,348,365,366,365,333,366, \ - 402,366,333,366,366,366,366,402,366,365,366,366,366,366,366,366, \ - 366,348,420,420,348,420,419,420,419,420,420,420,366,366,420,366, \ - 366,365,366,402,366,366,366,366,402,402,402,401,402,402,402,401, \ - 420,401,402,402,420,420,420,420,402,420,420,420,420,419,420,419, \ - 420,419,420,420,402,401,420,402,402,420,402,420,402,401,420,420, \ - 420,420,420,420,420,402,420,420,402,420,420,420,420,420,420,420, \ - 420,420,420,420,420,420,420,420,420,419,420,420,438,420,420,438, \ - 420,420,420,420,420,420,438,420,437,438,438,420,438,438,420,420, \ - 438,420,420,438,438,420,420,420,438,420,420,420,420,419,420,420, \ - 420,420,420,420,474,419,420,420,420,438,419,456,438,474,438,437, \ - 438,438,438,438,438,420,438,420,438,438,438,420,420,419,420,420, \ - 438,420,438,419,420,420,420,420,420,419,420,474,420,420,438,420, \ - 438,473,474,474,474,473,438,474,474,438,438,437,438,438,438,438, \ - 438,438,474,437,437,474,560,456,473,474,535,536,474,560,536,536, \ - 560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560, \ - 560,560,559,560,560,560,560,560,560,560,560,560,560,560,560,560, \ - 559,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560, \ - 560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560, \ - 559,560,560,560,560,560,560,560,559,560,559,560,560,560,560,559, \ - 559,560,559,560,560,560,560,560,560,559,560,560,559,560,559,560, \ - 560,560,559,560,560,560,560,559,560,560,560,560,560,560,560,560, \ - 560,560,560,560,560,560,560,560,560,560,559,584,560,560,560,560, \ - 559,560,560,559,560,560,560,560,560,560,559,559,560,560,560,560, \ - 560,560,559,560,560,560,560,560,560,583,560,560,584,560,584,584, \ - 584,560,583,583,584,584,582,584,584,584,583,584,584,584,584,584, \ - 727,584,728,632,728,560,727,728,728,560,584,560,560,727,728,728, \ - 727,728,728,728,608,728,728,724,728,728,760,727,728,727,728,728, \ - 728,759,728,696,728,728,728,728,728,727,759,760,727,760,760,727 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, \ - 14,15,18,19,18,14,22,18,18,18,18,20,18,18,20,22, \ - 22,22,23,24,26,26,26,28,24,30,28,28,28,30,30,32, \ - 32,34,32,34,32,34,34,31,32,37,32,37,32,33,34,35, \ - 39,37,37,39,39,37,39,39,39,39,39,39,43,44,46,46, \ - 47,45,46,48,52,48,50,50,48,46,50,50,52,56,54,50, \ - 60,60,60,56,56,64,61,60,56,64,60,64,64,64,64,60, \ - 64,64,64,63,64,64,64,64,64,64,70,64,64,68,78,66, \ - 74,69,70,74,70,69,74,78,78,74,74,74,74,78,78,79, \ - 78,78,78,78,78,78,78,78,78,78,88,88,88,88,88,88, \ - 92,92,88,91,92,88,95,96,96,96,96,92,92,88,92,112, \ - 112,112,112,108,112,112,112,112,120,112,112,112,120,112,120,112, \ - 112,120,120,120,104,112,112,128,112,112,112,120,112,112,120,120, \ - 128,120,120,120,112,120,128,128,128,120,128,128,128,128,128,128, \ - 128,128,120,128,128,128,128,128,120,128,128,128,128,128,128,128, \ - 128,128,128,128,128,128,126,128,128,128,127,128,128,128,144,148, \ - 136,136,144,144,140,141,140,148,148,151,144,148,148,160,156,148, \ - 160,160,160,160,156,156,156,148,148,156,148,160,160,160,148,156, \ - 148,148,148,156,156,156,156,160,156,156,158,156,156,157,160,156, \ - 156,160,160,158,156,156,158,158,159,160,159,160,160,160,184,183, \ - 184,184,180,184,184,176,184,184,184,184,186,184,184,184,184,184, \ - 184,184,186,186,192,184,184,186,184,184,186,183,184,185,186,184, \ - 184,184,186,185,216,184,192,186,208,192,192,184,208,216,224,209, \ - 208,216,224,222,224,216,208,224,224,224,208,224,210,224,216,234, \ - 208,216,216,208,224,216,216,224,224,222,224,224,224,216,224,224, \ - 224,221,224,216,232,224,224,224,224,224,224,224,208,224,222,224, \ - 224,224,216,224,232,224,224,216,224,256,224,256,224,248,224,224, \ - 224,224,224,224,224,222,224,232,222,224,224,224,224,224,230,232, \ - 256,234,232,240,240,233,240,233,248,240,240,240,240,238,240,256, \ - 248,240,248,256,256,256,256,256,256,248,256,256,256,256,256,256, \ - 256,256,256,256,256,256,248,256,248,256,248,248,256,256,256,256, \ - 256,256,256,256,280,296,280,280,256,288,296,280,256,280,280,296, \ - 296,296,280,280,280,296,296,296,280,280,280,296,280,296,295,312, \ - 312,312,312,296,312,311,312,312,312,296,296,312,296,296,312,312, \ - 312,296,312,312,296,311,312,312,312,312,312,312,312,312,312,296, \ - 296,312,311,296,312,312,312,312,312,312,312,312,296,312,312,312, \ - 312,312,312,312,312,312,312,312,296,312,312,312,312,312,312,312, \ - 312,312,312,312,311,311,312,312,312,312,312,312,312,312,312,312, \ - 312,312,312,312,312,312,312,312,312,312,312,312,312,312,320,316, \ - 320,319,319,320,320,320,319,320,319,320,360,320,320,320,352,360, \ - 368,352,368,368,369,372,344,370,372,366,369,352,370,370,370,360, \ - 360,360,360,368,360,372,372,360,370,368,372,367,368,360,370,368, \ - 372,371,370,372,372,372,371,368,368,368,370,370,368,368,368,372, \ - 370,372,367,368,368,370,368,368,360,368,360,368,370,368,368,367, \ - 360,368,368,368,372,368,372,368,368,368,372,371,368,416,368,367, \ - 372,368,372,372,372,370,440,372,368,416,368,368,368,433,448,369, \ - 440,416,415,416,440,448,440,440,448,448,440,448,440,440,448,416, \ - 416,416,415,440,417,416,416,418,432,418,417,448,416,432,416,432, \ - 416,420,440,448,408,416,432,448,416,448,448,448,440,440,440,440, \ - 448,440,440,440,440,448,416,448,440,416,448,416,448,448,440,448, \ - 416,440,416,419,417,448,416,420,416,432,433,420,417,432,416,424, \ - 440,440,440,440,448,437,440,440,448,440,440,448,448,448,448,432, \ - 480,440,440,440,448,448,448,448,448,448,440,448,445,432,448,448, \ - 448,439,448,448,468,448,448,440,440,440,448,448,468,496,480,448, \ - 440,448,440,468,440,496,440,466,448,448,448,468,448,440,448,448, \ - 448,496,496,496,496,448,448,496,448,468,468,448,448,468,480,467, \ - 468,512,496,512,512,496,496,480,512,480,496,512,512,512,496,512, \ - 512,496,496,496,512,512,512,512,512,496,512,512,496,496,496,496, \ - 512,512,496,512,496,496,496,496,512,512,512,496,480,496,496,496, \ - 496,496,512,512,512,512,496,496,512,496,496,496,512,480,496,544, \ - 512,496,496,496,576,512,496,560,496,496,512,561,496,560,496,560, \ - 560,496,512,512,512,496,512,512,512,576,512,512,512,512,512,512, \ - 512,512,512,512,560,512,560,512,576,512,576,592,512,560,591,512, \ - 592,512,576,512,576,592,592,624,592,576,560,512,592,576,592,592 \ - -#define MPFR_MUL_THRESHOLD 19 /* limbs */ -#define MPFR_SQR_THRESHOLD 18 /* limbs */ -#define MPFR_DIV_THRESHOLD 34 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 1031 /* bits */ -#define MPFR_EXP_THRESHOLD 11014 /* bits */ -#define MPFR_SINCOS_THRESHOLD 26907 /* bits */ -#define MPFR_AI_THRESHOLD1 -12404 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 1024 -#define MPFR_AI_THRESHOLD3 19611 -/* Tuneup completed successfully, took 759 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/cmp_abs.c b/external/lgpl3/mpfr/dist/src/cmp_abs.c deleted file mode 100644 index 16c0a9909dad..000000000000 --- a/external/lgpl3/mpfr/dist/src/cmp_abs.c +++ /dev/null @@ -1,94 +0,0 @@ -/* mpfr_cmpabs -- compare the absolute values of two FP numbers - -Copyright 1999, 2001-2004, 2006-2018 Free Software Foundation, Inc. -Contributed by the AriC and Caramba projects, INRIA. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include "mpfr-impl.h" - -/* Return a positive value if abs(b) > abs(c), 0 if abs(b) = abs(c), and - a negative value if abs(b) < abs(c). Neither b nor c may be NaN. */ - -int -mpfr_cmpabs (mpfr_srcptr b, mpfr_srcptr c) -{ - mpfr_exp_t be, ce; - mp_size_t bn, cn; - mp_limb_t *bp, *cp; - - if (MPFR_ARE_SINGULAR (b, c)) - { - if (MPFR_IS_NAN (b) || MPFR_IS_NAN (c)) - { - MPFR_SET_ERANGEFLAG (); - return 0; - } - else if (MPFR_IS_INF (b)) - return ! MPFR_IS_INF (c); - else if (MPFR_IS_INF (c)) - return -1; - else if (MPFR_IS_ZERO (c)) - return ! MPFR_IS_ZERO (b); - else /* b == 0 */ - return -1; - } - - MPFR_ASSERTD (MPFR_IS_PURE_FP (b)); - MPFR_ASSERTD (MPFR_IS_PURE_FP (c)); - - /* Now that we know that b and c are pure FP numbers (i.e. they have - a meaningful exponent), we use MPFR_EXP instead of MPFR_GET_EXP to - allow exponents outside the current exponent range. For instance, - this is useful for mpfr_pow, which compares values to __gmpfr_one. - This is for internal use only! For compatibility with other MPFR - versions, the user must still provide values that are representable - in the current exponent range. */ - be = MPFR_EXP (b); - ce = MPFR_EXP (c); - if (be > ce) - return 1; - if (be < ce) - return -1; - - /* exponents are equal */ - - bn = MPFR_LIMB_SIZE(b)-1; - cn = MPFR_LIMB_SIZE(c)-1; - - bp = MPFR_MANT(b); - cp = MPFR_MANT(c); - - for ( ; bn >= 0 && cn >= 0; bn--, cn--) - { - if (bp[bn] > cp[cn]) - return 1; - if (bp[bn] < cp[cn]) - return -1; - } - - for ( ; bn >= 0; bn--) - if (bp[bn]) - return 1; - - for ( ; cn >= 0; cn--) - if (cp[cn]) - return -1; - - return 0; -} diff --git a/external/lgpl3/mpfr/dist/src/get_patches.c b/external/lgpl3/mpfr/dist/src/get_patches.c deleted file mode 100644 index 653900d71205..000000000000 --- a/external/lgpl3/mpfr/dist/src/get_patches.c +++ /dev/null @@ -1,29 +0,0 @@ -/* mpfr_get_patches -- Patches that have been applied - -Copyright 2007-2018 Free Software Foundation, Inc. -Contributed by the AriC and Caramba projects, INRIA. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include "mpfr-impl.h" - -const char * -mpfr_get_patches (void) -{ - return ""; -} diff --git a/external/lgpl3/mpfr/dist/src/hppa/mparam.h b/external/lgpl3/mpfr/dist/src/hppa/mparam.h deleted file mode 100644 index fe7c6c98ea75..000000000000 --- a/external/lgpl3/mpfr/dist/src/hppa/mparam.h +++ /dev/null @@ -1,233 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2011-07-31, gcc 4.3.2 */ -/* generated on gcc61.fsffrance.org (HP PA-8600) with GMP 5.0.2 */ - - -#define MPFR_MULHIGH_TAB \ - -1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,48,47,48,47,48,47,48,47, \ - 48,47,64,63,64,63,64,63,64,63,64,63,64,63,64,63, \ - 64,63,64,63,64,63,64,63,64,63,64,63,64,63,64,63, \ - 64,63,64,72,64,72,64,93,64,93,64,93,92,93,92,93, \ - 92,93,92,93,92,93,92,93,92,93,92,93,92,93,92,93, \ - 92,93,92,93,105,93,105,93,105,93,105,93,105,105,105,108, \ - 105,105,105,105,108,105,105,105,108,108,108,117,108,117,108,141, \ - 140,141,140,141,140,141,140,141,140,141,140,141,140,141,140,141, \ - 140,141,140,141,140,141,140,141,140,141,140,141,140,141,140,141, \ - 140,141,140,141,140,141,140,141,141,153,140,141,140,141,140,140, \ - 144,140,140,141,140,139,140,141,140,141,140,141,188,188,188,187, \ - 188,187,188,188,188,188,188,188,188,188,188,188,188,188,188,187, \ - 187,187,188,188,188,188,188,188,210,188,210,188,188,210,188,188, \ - 188,188,188,188,188,188,188,188,188,188,186,188,210,188,188,187, \ - 188,188,210,210,210,210,210,210,210,210,210,210,210,210,210,210, \ - 210,210,210,210,210,210,210,208,210,209,210,210,210,210,210,233, \ - 234,234,234,233,232,234,234,234,234,234,234,234,234,234,234,276, \ - 234,276,234,276,234,276,276,276,276,276,276,276,282,276,282,276, \ - 282,276,276,276,276,276,282,281,276,276,276,276,276,276,276,276, \ - 276,276,276,276,276,276,282,276,282,276,282,276,282,281,282,281, \ - 282,281,282,281,282,281,282,281,282,281,282,306,282,306,282,306, \ - 306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306, \ - 306,372,306,371,306,372,372,372,372,372,372,371,372,372,372,372, \ - 372,372,372,372,372,372,372,372,372,372,372,372,372,372,372,372, \ - 372,371,372,372,372,372,372,372,372,372,372,372,372,372,372,372, \ - 372,372,372,372,372,372,372,372,372,372,372,372,372,372,372,372, \ - 372,372,372,372,372,372,372,372,372,372,372,372,372,372,372,372, \ - 372,372,372,372,372,372,372,372,372,372,372,372,372,372,372,372, \ - 372,372,372,372,372,372,372,372,426,372,426,426,426,426,426,426, \ - 426,426,426,426,426,425,426,425,426,426,426,426,426,426,426,426, \ - 426,426,426,426,426,424,426,426,426,426,426,426,426,426,426,426, \ - 426,426,426,426,426,426,426,426,426,426,426,426,426,426,426,426, \ - 426,426,426,426,426,426,426,426,426,426,426,426,426,426,426,503, \ - 504,503,504,503,504,503,504,503,504,503,504,503,504,503,504,503, \ - 504,503,504,503,504,503,504,503,502,503,504,503,504,503,504,503, \ - 504,496,504,503,504,503,504,503,504,503,504,503,504,503,504,503, \ - 504,503,504,503,504,503,504,503,504,503,568,568,568,568,568,568, \ - 568,567,568,568,568,567,568,567,568,567,568,568,568,567,568,568, \ - 568,568,568,568,568,567,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,567,568,568,568,568,568,567,568,567,568,568,568,567, \ - 568,567,568,567,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,567,568,568,568,568,568,568,632,568,568,568,568,631,568,568, \ - 568,568,568,568,568,567,568,567,568,568,568,568,632,632,632,631, \ - 632,631,632,631,632,632,632,631,632,632,632,631,632,632,632,728, \ - 728,727,728,727,728,728,728,727,728,727,728,727,728,727,728,728, \ - 728,728,728,728,728,728,728,728,728,728,728,728,728,728,728,728, \ - 728,728,728,728,728,728,728,728,728,728,728,728,728,728,728,728, \ - 728,752,728,752,728,752,728,752,752,752,728,752,752,752,752,752, \ - 752,752,752,752,752,752,752,752,752,752,752,752,752,751,752,751, \ - 752,751,752,751,728,728,728,728,752,728,728,728,728,728,728,728, \ - 728,752,832,751,832,752,832,752,832,752,832,752,832,752,832,751, \ - 832,831,832,752,832,831,832,832,832,832,832,832,832,824,832,832, \ - 832,832,832,832,832,832,832,832,832,832,832,832,832,832,832,832, \ - 832,832,832,832,832,832,832,831,832,831,832,831,832,831,832,831, \ - 832,831,832,832,832,831,832,831,832,831,832,831,832,831,832,831, \ - 832,832,832,831,832,832,832,832,832,831,832,832,832,832,832,832 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,0,0,0,0,0,0,0,7,0,8,9,9, \ - 10,10,11,11,12,13,14,13,14,15,16,15,16,17,18,17, \ - 18,19,20,19,20,21,22,21,22,23,24,23,24,25,26,25, \ - 26,27,28,27,28,29,30,29,30,31,32,31,32,33,34,33, \ - 34,35,36,35,36,37,38,37,38,39,40,39,40,41,42,41, \ - 42,43,44,43,44,47,48,47,48,47,48,47,48,51,52,51, \ - 52,51,52,51,56,55,56,55,56,55,56,59,60,59,60,59, \ - 60,63,60,63,64,63,64,63,68,63,68,67,68,67,68,71, \ - 68,71,72,71,72,71,72,75,76,75,76,75,76,79,80,79, \ - 80,79,80,75,76,83,84,79,80,79,80,79,80,83,84,83, \ - 84,83,84,83,88,93,88,93,88,93,96,93,88,93,96,99, \ - 96,93,92,93,92,93,96,93,96,99,96,99,96,99,98,99, \ - 102,99,102,99,102,105,102,105,102,105,104,105,108,111,108,111, \ - 108,117,114,117,116,117,116,117,116,117,120,117,120,123,120,123, \ - 120,123,128,129,126,129,128,129,132,129,132,141,138,141,140,141, \ - 140,141,140,141,140,141,140,141,140,153,152,153,152,153,152,153, \ - 152,153,152,153,152,153,152,153,164,165,164,165,164,165,164,165, \ - 164,165,164,165,164,177,176,177,176,177,176,177,176,177,176,177, \ - 176,177,180,177,165,189,165,189,165,189,165,164,165,164,165,164, \ - 165,164,177,176,177,176,177,176,177,176,177,176,177,176,177,188, \ - 189,188,189,188,189,188,189,188,189,188,189,188,189,188,189,200, \ - 189,200,201,200,201,200,201,200,201,200,201,212,213,212,213,212, \ - 213,212,213,212,213,212,213,212,213,212,213,212,213,224,225,213, \ - 225,213,225,213,225,213,225,213,225,213,237,225,237,225,237,225, \ - 201,225,201,200,201,201,201,252,201,201,201,201,201,212,213,213, \ - 213,213,213,212,213,213,213,212,213,213,213,213,213,213,225,225, \ - 225,225,225,225,225,225,225,225,225,225,225,237,237,237,237,237, \ - 237,236,237,237,237,252,252,252,252,252,252,252,252,252,252,252, \ - 252,252,252,252,252,252,252,252,268,268,268,268,268,268,268,268, \ - 268,266,268,268,268,268,268,268,268,268,275,268,275,268,275,268, \ - 275,294,294,294,294,294,294,294,300,294,300,294,300,300,300,300, \ - 300,300,300,300,300,300,318,318,318,318,318,318,318,318,318,318, \ - 318,318,318,318,324,318,318,318,318,324,324,318,324,324,330,330, \ - 330,330,342,342,342,342,342,342,342,342,342,342,342,342,342,342, \ - 342,348,348,348,348,348,348,348,348,348,348,366,366,366,366,366, \ - 366,366,366,366,372,366,372,366,372,372,366,372,372,372,372,372, \ - 372,372,372,372,372,372,378,390,378,390,390,390,390,390,390,390, \ - 390,390,396,390,396,390,366,390,396,396,372,396,372,396,372,396, \ - 378,414,366,414,366,414,366,414,366,414,372,414,372,414,372,414, \ - 372,372,372,395,396,395,396,390,390,390,390,390,390,390,390,390, \ - 390,390,366,390,396,365,366,371,396,396,372,371,372,390,378,414, \ - 378,414,378,414,414,414,414,414,390,414,390,389,390,389,390,395, \ - 396,395,396,395,396,396,402,414,402,395,396,395,396,389,414,413, \ - 414,413,414,413,414,413,414,414,420,395,420,419,420,395,396,401, \ - 396,419,420,419,414,413,414,413,414,413,414,413,414,413,414,413, \ - 414,413,420,419,420,419,420,419,420,419,426,425,426,437,438,437, \ - 438,437,438,437,438,437,444,437,444,443,438,443,444,443,444,443, \ - 444,443,444,443,444,461,462,461,462,461,462,461,462,461,462,461, \ - 462,461,462,467,468,467,468,467,468,467,468,467,468,467,474,473, \ - 486,485,486,485,486,485,414,485,486,485,486,491,492,491,492,519, \ - 520,491,504,503,420,503,504,437,504,503,504,437,504,437,438,437, \ - 520,443,444,519,520,519,520,519,520,519,520,519,520,527,520,527, \ - 528,527,528,461,528,461,528,461,462,461,462,467,468,467,468,467, \ - 468,551,552,551,552,551,552,551,552,551,560,551,552,551,552,551, \ - 552,551,552,559,560,559,560,559,560,503,568,567,504,503,504,503, \ - 504,503,504,519,520,519,520,519,520,519,520,520,520,519,520,519, \ - 520,519,520,519,520,527,528,527,528,527,528,527,528,527,528,527, \ - 528,535,552,551,552,551,552,551,552,552,552,551,552,551,552,551, \ - 552,551,552,551,552,551,552,551,552,559,560,551,560,559,560,559, \ - 560,567,568,567,568,583,568,567,584,583,584,583,584,583,584,583, \ - 584,583,584,583,584,583,584,583,584,583,592,591,592,591,592,591, \ - 592,591,592,591,592,615,616,519,520,615,520,519,520,615,616,615, \ - 616,615,528,615,616,615,528,527,528,615,528,623,624,623,536,552, \ - 552,551,552,551,552,551,552,551,552,551,552,551,552,551,552,551 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,6,7,10,11,10,11,12,13, \ - 10,11,11,11,12,12,14,15,14,14,16,16,16,16,18,17, \ - 22,19,22,23,22,23,26,27,26,23,30,29,26,27,26,27, \ - 30,31,30,31,30,35,30,35,30,35,34,31,34,35,38,35, \ - 34,36,38,39,38,39,38,43,38,40,42,43,42,44,42,43, \ - 42,44,46,47,46,44,46,51,50,48,50,51,54,52,54,52, \ - 50,51,54,55,58,55,54,56,58,56,62,60,58,63,58,63, \ - 62,64,62,64,62,64,62,64,62,67,66,71,66,67,74,71, \ - 70,67,70,71,74,72,74,75,70,76,74,79,74,75,74,79, \ - 74,79,78,80,78,76,78,80,78,79,82,84,82,80,82,87, \ - 86,84,86,84,86,84,86,88,90,88,90,92,90,88,94,96, \ - 90,92,94,92,94,92,94,96,94,102,98,96,100,102,98,102, \ - 98,104,100,102,102,104,104,102,102,102,104,104,104,104,108,112, \ - 128,110,128,110,128,128,128,128,128,128,128,128,128,128,128,128, \ - 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128, \ - 128,128,128,128,128,128,128,128,128,128,128,128,128,128,142,142, \ - 142,142,140,142,144,144,144,142,144,142,140,142,140,142,142,144, \ - 140,142,140,142,140,144,144,144,144,144,144,144,144,144,148,146, \ - 148,160,148,150,148,158,156,158,156,160,156,158,160,160,156,160, \ - 164,158,156,160,164,160,164,182,180,182,164,184,182,184,182,182, \ - 180,182,182,182,182,186,184,182,180,182,184,184,184,185,182,184, \ - 182,185,182,185,182,185,184,185,184,185,182,185,184,184,184,182, \ - 184,185,184,186,184,185,182,182,184,184,184,184,184,184,186,185, \ - 186,206,200,206,188,206,196,198,196,208,196,198,196,198,196,206, \ - 200,206,208,206,196,198,200,208,200,206,200,206,200,208,216,208, \ - 208,206,208,206,216,208,216,208,216,208,216,208,216,208,216,220, \ - 216,210,216,220,256,220,216,220,216,224,216,222,256,250,248,254, \ - 256,256,256,254,256,254,256,254,256,254,256,254,256,256,256,256, \ - 256,254,256,254,256,256,256,254,256,254,256,254,256,256,256,254, \ - 256,254,256,254,256,254,256,256,256,254,256,254,256,256,256,254, \ - 256,254,256,256,256,254,256,254,256,254,256,256,256,254,256,254, \ - 256,254,256,254,256,254,256,254,256,282,280,256,256,256,282,284, \ - 282,284,282,288,280,281,282,288,282,288,282,282,280,281,280,282, \ - 282,287,288,288,280,282,282,288,282,288,282,288,282,288,282,288, \ - 282,284,282,288,280,288,282,288,282,284,282,288,282,288,282,288, \ - 282,288,288,288,288,288,288,288,288,288,288,288,288,288,296,300, \ - 296,304,296,304,298,300,296,300,296,300,312,302,296,306,312,300, \ - 312,320,312,300,312,370,312,320,312,302,312,320,312,370,312,371, \ - 312,371,312,369,372,371,372,371,368,370,372,370,372,370,372,370, \ - 371,369,372,370,368,370,372,370,372,370,372,370,370,370,364,370, \ - 371,370,372,370,370,370,372,370,372,370,372,370,370,370,372,370, \ - 370,372,370,370,372,370,372,370,372,370,368,370,370,372,372,370, \ - 370,370,372,370,372,372,372,370,372,370,370,366,372,370,370,370, \ - 372,368,368,370,370,370,372,370,370,370,372,370,372,370,368,370, \ - 372,370,372,370,369,370,372,370,372,369,372,370,372,371,372,370, \ - 372,370,368,372,372,371,372,369,372,371,370,371,372,370,372,372, \ - 372,370,372,372,372,372,376,416,376,416,376,416,414,416,416,420, \ - 384,416,415,416,414,416,415,416,392,420,400,416,420,420,392,420, \ - 400,416,416,416,416,420,416,412,416,416,416,416,418,416,414,416, \ - 418,420,418,420,418,416,416,416,418,420,414,420,418,420,420,420, \ - 416,416,418,420,418,418,416,416,420,416,418,416,432,420,432,420, \ - 416,416,416,420,416,420,432,420,418,420,432,420,418,416,418,420, \ - 420,420,432,420,420,420,432,468,464,512,432,468,432,444,432,444, \ - 512,508,432,468,512,512,464,510,432,510,512,512,512,512,512,512, \ - 512,512,512,512,512,508,512,508,512,512,512,508,512,510,512,512, \ - 512,512,512,512,512,512,512,508,512,512,512,508,512,512,512,512, \ - 512,512,512,512,512,512,512,512,512,512,512,508,512,512,512,512, \ - 512,512,512,512,512,508,512,512,512,512,512,468,464,512,564,468, \ - 512,564,512,512,564,512,512,512,564,508,564,508,564,503,564,508, \ - 512,508,512,512,564,508,512,508,564,512,512,512,512,512,512,508, \ - 512,510,512,512,512,512,512,512,512,512,512,512,512,512,512,512, \ - 512,508,512,508,512,512,512,512,512,512,512,512,512,512,512,512, \ - 512,512,512,512,512,512,512,512,512,564,562,564,560,512,564,564, \ - 562,564,560,564,564,564,560,564,564,564,564,564,564,564,564,562 \ - -#define MPFR_MUL_THRESHOLD 6 /* limbs */ -#define MPFR_SQR_THRESHOLD 8 /* limbs */ -#define MPFR_DIV_THRESHOLD 23 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 530 /* bits */ -#define MPFR_EXP_THRESHOLD 2918 /* bits */ -#define MPFR_SINCOS_THRESHOLD 28251 /* bits */ -#define MPFR_AI_THRESHOLD1 -21852 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 2256 -#define MPFR_AI_THRESHOLD3 34310 -/* Tuneup completed successfully, took 8236 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/ia64/mparam.h b/external/lgpl3/mpfr/dist/src/ia64/mparam.h deleted file mode 100644 index 0a1d99133738..000000000000 --- a/external/lgpl3/mpfr/dist/src/ia64/mparam.h +++ /dev/null @@ -1,233 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2011-07-31, gcc 4.4.5 */ -/* gcc60.fsffrance.org (Madison) with gmp 5.0.2 */ - - -#define MPFR_MULHIGH_TAB \ - -1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, \ - -1,-1,14,16,16,17,18,19,20,20,22,22,20,21,22,23, \ - 24,23,24,25,24,25,30,30,30,31,32,32,32,33,32,33, \ - 32,33,34,37,36,37,38,35,36,40,36,39,40,41,40,43, \ - 48,48,42,43,48,41,48,50,48,48,48,50,48,60,48,50, \ - 60,64,60,60,60,60,60,66,64,64,64,63,64,65,68,64, \ - 64,64,64,63,64,64,68,68,64,68,64,64,64,64,76,76, \ - 80,76,76,72,72,80,76,76,76,82,80,80,80,80,80,80, \ - 84,93,88,96,96,96,90,99,96,93,96,99,96,93,96,99, \ - 96,96,102,105,108,99,108,105,108,105,108,111,108,111,108,111, \ - 108,117,120,117,120,117,117,117,120,120,120,117,120,120,120,123, \ - 120,117,120,123,120,120,126,141,120,141,141,141,140,141,144,141, \ - 140,141,141,141,144,141,144,147,144,141,156,141,140,141,156,165, \ - 164,165,156,165,164,165,165,165,164,165,164,165,164,165,165,165, \ - 164,165,164,165,168,177,180,177,165,177,177,177,176,177,180,177, \ - 180,177,180,177,176,177,180,165,168,189,180,189,192,189,186,189, \ - 188,189,176,177,192,189,180,177,192,189,180,201,192,177,192,189, \ - 192,189,189,189,188,213,212,213,192,213,200,201,192,213,200,201, \ - 212,213,192,201,200,213,212,213,212,213,200,213,212,213,210,201, \ - 212,213,236,212,212,213,212,213,216,213,236,213,236,235,236,252, \ - 236,225,236,251,236,233,236,235,236,240,252,252,236,235,252,252, \ - 236,249,252,251,252,252,252,251,256,256,256,251,252,251,252,251, \ - 252,252,252,267,268,265,268,267,268,265,268,267,268,265,268,267, \ - 268,267,268,283,268,281,284,283,284,281,268,283,284,281,284,283, \ - 284,284,284,283,284,283,284,283,284,283,284,283,284,281,300,284, \ - 284,284,300,300,300,316,284,315,284,313,300,315,316,284,316,315, \ - 316,299,300,284,316,284,316,315,300,315,316,315,316,300,316,316, \ - 316,313,316,315,316,313,316,315,316,316,316,315,320,316,316,315, \ - 354,354,354,315,354,354,354,354,354,354,354,354,354,353,378,378, \ - 354,354,354,378,354,354,354,354,354,377,378,354,354,377,378,378, \ - 378,378,378,378,378,377,378,378,378,378,378,378,378,377,378,378, \ - 378,378,378,378,378,377,378,378,378,378,378,378,378,378,378,378, \ - 378,377,378,378,378,378,378,402,378,378,378,378,402,378,378,378, \ - 402,426,426,426,426,402,426,426,402,402,426,426,402,402,426,426, \ - 426,426,426,426,426,425,426,426,426,402,426,426,426,426,426,426, \ - 426,426,426,426,426,426,426,426,472,472,426,426,472,426,472,472, \ - 472,426,426,426,472,471,472,472,472,472,472,472,472,472,472,472, \ - 472,472,472,472,472,472,472,472,472,472,472,472,472,472,472,472, \ - 472,472,472,472,472,472,472,472,472,472,472,472,504,504,472,472, \ - 504,504,504,472,472,472,472,504,472,472,472,472,504,472,504,504, \ - 504,504,504,504,504,504,536,504,504,504,504,504,504,504,504,504, \ - 504,504,536,535,536,504,536,536,536,504,536,536,504,504,504,504, \ - 504,504,536,536,536,536,536,536,536,536,536,536,536,536,536,536, \ - 536,536,536,536,536,536,536,536,536,536,536,536,536,536,536,536, \ - 536,536,536,536,536,536,536,536,536,536,536,568,536,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,600,600,568,600,600,600,600,568,600,600, \ - 600,600,600,600,600,600,600,600,600,600,599,600,600,600,600,600, \ - 600,600,600,600,600,600,600,599,600,600,600,600,600,600,632,600, \ - 600,600,600,600,632,600,600,600,632,600,632,632,632,632,632,632, \ - 632,632,632,632,632,632,632,632,632,600,632,600,632,632,632,600, \ - 664,632,664,664,632,632,664,664,664,664,632,664,664,632,664,664, \ - 664,632,664,664,664,664,664,664,664,664,664,664,631,632,632,632, \ - 664,632,664,664,664,664,663,664,664,664,736,664,736,664,664,664, \ - 736,736,736,664,736,735,736,735,736,736,736,735,736,735,736,735, \ - 736,736,664,735,736,736,736,736,736,735,736,735,736,735,736,736, \ - 736,736,736,735,736,736,736,735,736,736,736,735,736,735,736,736, \ - 736,736,760,760,736,760,760,760,760,760,784,760,760,783,784,760, \ - 760,760,760,760,784,760,760,760,760,784,784,784,784,784,784,784, \ - 736,760,784,784,784,784,784,783,784,783,784,783,784,783,784,784, \ - 784,760,784,784,784,784,784,784,784,784,784,784,784,784,784,760, \ - 784,784,784,784,784,783,784,831,784,784,784,784,784,784,784,831, \ - 832,784,832,831,784,831,832,831,832,784,784,831,832,783,784,831, \ - 832,784,832,831,832,784,856,856,856,856,856,856,856,856,856,856 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,0,0,-1,-1,-1,6,-1,8,8,8,10,10, \ - 10,12,11,11,12,12,14,14,14,14,16,15,16,16,18,19, \ - 18,18,19,20,20,20,22,22,22,22,24,24,24,28,26,30, \ - 28,32,30,28,28,28,30,30,30,30,32,34,34,34,36,36, \ - 36,38,38,40,36,38,38,40,38,42,42,44,44,44,42,44, \ - 44,46,46,48,44,50,46,52,48,54,50,52,48,54,50,52, \ - 54,50,56,52,56,52,58,56,56,56,58,58,60,60,62,62, \ - 60,64,62,62,68,68,66,66,64,68,66,70,72,72,66,68, \ - 68,70,70,70,72,74,74,74,80,78,78,76,80,80,82,84, \ - 84,82,86,80,82,82,84,84,86,86,88,92,88,90,86,92, \ - 84,94,86,90,88,92,90,94,86,86,88,98,92,88,90,90, \ - 94,92,92,94,96,92,94,94,96,100,98,98,96,100,102,102, \ - 100,98,102,100,100,102,102,102,104,106,106,108,108,104,106,110, \ - 108,106,114,108,108,124,110,110,116,110,114,116,112,114,114,128, \ - 128,114,118,120,128,128,118,120,132,132,132,120,120,128,124,124, \ - 128,144,124,128,128,128,140,136,132,132,128,136,136,128,136,140, \ - 132,140,166,136,160,161,140,140,136,140,166,154,144,168,166,154, \ - 154,155,142,142,160,167,166,166,148,166,178,167,160,154,154,179, \ - 172,167,167,154,156,148,156,160,172,172,166,166,167,166,154,155, \ - 168,167,166,162,172,168,167,178,166,178,167,178,180,174,173,184, \ - 180,190,178,172,178,178,190,178,178,190,191,184,178,190,190,172, \ - 191,184,178,192,180,180,191,184,192,190,190,190,184,190,190,190, \ - 192,190,214,203,204,202,190,214,202,190,190,190,204,191,190,208, \ - 204,216,196,203,216,208,215,212,209,214,214,216,215,220,215,216, \ - 214,216,216,214,220,216,214,216,220,214,214,240,228,226,226,232, \ - 226,234,228,238,233,238,226,226,232,220,238,240,244,239,239,214, \ - 240,232,238,250,227,232,250,250,233,238,240,226,232,234,238,226, \ - 252,232,238,244,239,240,238,238,239,240,238,262,246,256,250,246, \ - 252,244,262,252,252,262,251,262,262,264,275,262,264,258,233,262, \ - 268,234,263,236,263,240,239,270,238,244,239,244,240,240,249,244, \ - 243,244,245,252,249,244,251,250,257,258,255,250,262,264,257,258, \ - 250,262,262,258,257,262,262,274,274,262,273,262,263,274,275,274, \ - 275,264,263,276,274,268,275,288,281,286,288,288,264,274,281,274, \ - 295,274,296,300,293,274,275,296,295,288,292,280,311,312,300,304, \ - 307,302,300,308,312,304,315,314,299,316,320,316,303,320,318,320, \ - 315,312,320,320,318,320,307,336,316,334,313,332,327,336,312,334, \ - 316,320,313,340,316,320,315,344,332,315,332,315,316,328,335,318, \ - 332,320,331,308,332,331,326,315,316,331,345,332,347,344,347,347, \ - 315,329,335,331,348,345,327,320,331,334,348,352,378,378,334,378, \ - 351,390,332,378,348,390,390,378,377,390,377,378,390,377,329,402, \ - 356,390,402,378,378,390,378,390,378,390,401,378,378,390,390,414, \ - 388,426,401,426,378,401,378,426,389,390,402,426,402,402,426,414, \ - 402,414,402,426,425,426,437,414,402,438,402,426,426,401,426,426, \ - 426,390,426,390,426,425,426,414,426,426,402,426,426,426,426,426, \ - 426,438,426,426,426,426,438,414,402,438,450,426,426,402,426,438, \ - 426,426,426,426,437,438,426,426,438,438,450,426,426,438,426,426, \ - 437,438,426,426,425,426,438,460,474,438,449,438,426,474,426,474, \ - 425,438,426,425,486,462,438,474,438,462,450,474,426,426,426,474, \ - 438,474,462,474,450,474,438,474,473,438,474,474,474,536,426,474, \ - 486,486,474,486,474,474,536,474,474,536,474,474,474,536,462,536, \ - 486,536,474,536,536,536,536,536,536,536,536,536,474,536,536,536, \ - 535,536,535,536,536,536,536,536,536,536,536,536,536,536,536,536, \ - 536,536,535,535,536,536,536,535,536,536,535,535,536,536,536,536, \ - 536,536,536,536,536,552,536,535,536,535,536,535,536,536,536,535, \ - 536,536,536,536,536,584,536,536,536,535,536,535,536,536,568,535, \ - 552,536,568,536,536,584,536,535,536,536,536,536,536,536,600,535, \ - 536,536,536,584,536,584,536,535,536,536,536,535,536,600,600,535, \ - 536,600,568,536,568,568,536,584,536,536,536,536,600,584,567,584, \ - 600,584,583,599,584,584,600,584,600,568,600,599,600,600,600,584, \ - 616,600,600,600,600,600,600,599,600,600,600,600,600,600,600,599, \ - 600,600,615,599,616,616,584,599,600,616,600,600,600,600,600,599, \ - 616,616,600,600,616,616,600,600,600,616,600,599,600,600,600,599, \ - 600,616,616,599,616,616,616,599,616,616,616,599,616,616,600,599, \ - 616,616,600,616,616,616,632,648,664,648,616,648,600,600,632,664 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,13, \ - 16,17,18,19,18,21,22,23,22,25,17,17,20,23,25,22, \ - 24,25,21,21,24,29,29,31,28,28,26,31,30,28,29,30, \ - 31,37,38,37,36,40,37,37,40,37,41,37,36,39,38,46, \ - 42,43,42,43,40,37,42,43,44,49,42,43,40,45,46,47, \ - 49,49,50,43,44,45,50,46,54,53,53,55,50,51,50,50, \ - 54,56,54,52,55,53,57,55,56,57,58,58,56,62,66,59, \ - 62,65,64,59,60,65,66,77,76,73,70,73,68,65,72,73, \ - 76,69,72,71,70,81,72,85,76,77,74,77,80,81,76,77, \ - 84,85,84,79,82,81,84,77,84,83,80,85,82,81,96,83, \ - 96,85,85,91,96,84,92,95,92,100,92,96,88,98,96,99, \ - 96,96,100,100,96,95,100,100,102,96,100,95,96,98,100,99, \ - 109,100,100,100,104,112,104,117,104,109,120,117,108,110,124,109, \ - 112,114,112,115,120,120,112,117,118,116,116,115,112,120,124,127, \ - 128,127,120,116,120,127,125,129,120,123,120,131,131,129,132,136, \ - 132,125,136,131,136,125,144,144,136,144,144,147,144,128,152,144, \ - 148,149,132,144,150,145,147,145,152,151,144,143,152,164,152,152, \ - 152,152,152,149,152,159,152,152,152,159,144,155,160,144,164,160, \ - 152,152,168,163,148,160,168,160,155,164,170,152,152,160,160,164, \ - 168,160,166,168,168,170,168,162,164,168,164,168,168,160,163,176, \ - 168,166,176,167,168,168,169,176,168,190,186,176,192,171,184,192, \ - 192,190,192,186,176,172,176,176,176,192,192,186,192,192,198,191, \ - 192,198,192,198,192,192,192,216,192,192,192,191,192,191,216,198, \ - 198,198,192,192,192,198,197,192,192,192,198,198,208,224,208,198, \ - 198,216,198,198,216,208,216,208,216,222,216,215,208,209,234,224, \ - 240,221,234,216,216,240,232,233,216,222,233,232,216,239,240,218, \ - 224,234,240,240,240,240,224,232,240,240,216,240,224,233,230,240, \ - 224,233,240,234,240,234,224,232,240,233,233,240,230,230,234,240, \ - 240,232,240,240,240,228,240,240,235,240,240,232,240,238,240,240, \ - 240,240,240,240,240,244,246,240,256,240,240,240,244,288,250,250, \ - 256,288,288,256,246,282,288,288,256,288,256,288,248,293,254,288, \ - 288,256,264,256,257,265,288,257,255,288,288,288,256,288,288,281, \ - 292,280,288,292,288,287,280,288,287,280,288,282,288,294,288,288, \ - 288,288,288,288,288,288,288,288,294,304,288,304,288,288,288,292, \ - 294,288,288,288,280,294,292,294,292,328,288,282,328,288,288,291, \ - 288,288,288,288,300,288,317,304,288,329,304,292,304,320,304,318, \ - 327,325,324,326,304,312,336,304,329,320,328,330,328,330,336,320, \ - 328,327,330,318,316,319,330,336,328,336,352,336,320,326,352,320, \ - 336,325,326,324,342,329,327,328,336,336,336,336,336,328,352,330, \ - 320,328,336,326,320,335,335,326,352,352,342,336,352,326,336,336, \ - 336,352,329,328,342,328,342,336,326,336,384,352,384,329,352,336, \ - 384,352,384,352,336,336,334,384,384,384,384,384,384,352,351,384, \ - 384,384,383,372,384,372,384,384,352,368,384,384,382,396,384,372, \ - 384,384,352,384,384,383,384,384,384,384,384,384,384,384,384,384, \ - 372,384,384,396,384,384,384,384,384,384,384,384,384,384,384,384, \ - 384,396,384,384,384,384,384,372,384,384,384,396,384,384,384,432, \ - 384,383,384,384,384,396,384,384,384,396,382,384,384,396,394,384, \ - 384,384,384,383,392,396,400,384,384,401,384,384,396,432,396,432, \ - 392,408,432,396,396,396,416,396,416,432,448,428,424,420,394,395, \ - 432,432,432,396,432,432,432,432,432,426,432,432,448,448,444,464, \ - 416,440,432,425,432,430,448,432,432,432,432,432,432,432,442,432, \ - 432,432,432,447,472,432,432,480,432,468,480,480,448,465,450,432, \ - 480,465,448,464,480,448,472,467,468,480,438,479,464,465,468,472, \ - 468,469,480,448,480,480,464,480,468,469,464,467,468,432,472,480, \ - 464,480,472,468,480,468,472,472,468,477,480,471,472,467,448,480, \ - 448,496,488,464,470,480,480,480,480,469,472,448,480,479,480,512, \ - 492,477,480,469,480,464,480,480,464,480,500,480,472,480,472,479, \ - 488,468,500,480,512,472,504,467,480,472,480,480,464,469,480,480, \ - 480,472,496,500,480,480,480,480,472,480,480,496,480,576,480,480, \ - 480,497,576,500,480,516,504,504,498,480,504,480,504,480,504,576, \ - 512,496,512,508,576,529,512,500,576,534,534,504,512,515,528,576, \ - 560,528,576,512,528,513,512,528,528,576,576,496,528,576,576,511, \ - 512,504,576,576,560,512,576,504,576,576,576,576,564,576,564,576, \ - 576,562,576,576,576,576,576,560,576,576,564,528,532,576,576,576 \ - -#define MPFR_MUL_THRESHOLD 26 /* limbs */ -#define MPFR_SQR_THRESHOLD 19 /* limbs */ -#define MPFR_DIV_THRESHOLD 44 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 1092 /* bits */ -#define MPFR_EXP_THRESHOLD 5435 /* bits */ -#define MPFR_SINCOS_THRESHOLD 24855 /* bits */ -#define MPFR_AI_THRESHOLD1 -9637 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 922 -#define MPFR_AI_THRESHOLD3 16031 -/* Tuneup completed successfully, took 1058 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/mpfr-longlong.h b/external/lgpl3/mpfr/dist/src/mpfr-longlong.h index 787c1b2e840c..68841cdce47a 100644 --- a/external/lgpl3/mpfr/dist/src/mpfr-longlong.h +++ b/external/lgpl3/mpfr/dist/src/mpfr-longlong.h @@ -1,10 +1,14 @@ /* longlong.h -- definitions for mixed size 32/64 bit arithmetic. -Copyright 1991-1994, 1996, 1997, 1999-2005, 2007-2009, 2011-2018 Free Software Foundation, Inc. +Copyright 1991-1994, 1996, 1997, 1999-2005, 2007-2009, 2011-2020 Free Software Foundation, Inc. This file is part of the GNU MPFR Library and has been copied from -GNU MP 6.1.0 (the FIXME's come from GNU MP), except the parts marked -beginning of code specific to MPFR ... end of code specific to MPFR. +GNU MP 6.2.0, with the following changes: + * the copyright notice (note: only LGPL 3+ is used in MPFR); + * the code declared as added for MPFR just below these comments; + * __GMP_DECLSPEC renamed to __MPFR_DECLSPEC; + * patch on https://gmplib.org/list-archives/gmp-bugs/2020-June/004807.html + for arm / aarch64 / 64-bit powerpc applied. The GNU MPFR Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -18,7 +22,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., +https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ /* You have to define the following before including this file: @@ -45,6 +49,18 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., expected. */ +/* Code added for MPFR */ + +#ifndef MPFR_NEED_LONGLONG_H +# error "Never include mpfr-longlong.h directly; define MPFR_NEED_LONGLONG_H instead." +#endif + +#ifndef __GMP_GNUC_PREREQ +# define __GMP_GNUC_PREREQ(X,Y) __MPFR_GNUC(X,Y) +#endif + +/* End of code added for MPFR */ + #define __BITS4 (W_TYPE_SIZE / 4) #define __ll_B ((UWtype) 1 << (W_TYPE_SIZE / 2)) #define __ll_lowpart(t) ((UWtype) (t) & (__ll_B - 1)) @@ -196,7 +212,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., (pl) = __m0 * __m1; \ } while (0) #endif -#define UMUL_TIME 18 #else /* ! __GNUC__ */ #include #define umul_ppmm(ph, pl, m0, m1) \ @@ -214,7 +229,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., } while (0) #define UDIV_PREINV_ALWAYS 1 #define UDIV_NEEDS_NORMALIZATION 1 -#define UDIV_TIME 220 #endif /* LONGLONG_STANDALONE */ /* clz_tab is required in all configurations, since mpn/alpha/cntlz.asm @@ -277,7 +291,6 @@ long __MPN(count_leading_zeros) (UDItype); #include #define UDIV_PREINV_ALWAYS 1 #define UDIV_NEEDS_NORMALIZATION 1 -#define UDIV_TIME 220 long __MPN(count_leading_zeros) (UDItype); #define count_leading_zeros(count, x) \ ((count) = _leadz ((UWtype) (x))) @@ -321,7 +334,6 @@ long __MPN(count_leading_zeros) (UDItype); __asm__ ("xma.hu %0 = %2, %3, f0\n\txma.l %1 = %2, %3, f0" \ : "=&f" (ph), "=f" (pl) \ : "f" (m0), "f" (m1)) -#define UMUL_TIME 14 #define count_leading_zeros(count, x) \ do { \ UWtype _x = (x), _y, _a, _c; \ @@ -364,7 +376,6 @@ long __MPN(count_leading_zeros) (UDItype); #define UDIV_PREINV_ALWAYS 1 #define UDIV_NEEDS_NORMALIZATION 1 #endif -#define UDIV_TIME 220 #endif @@ -416,17 +427,17 @@ long __MPN(count_leading_zeros) (UDItype); : "=r" (sh), \ "=&r" (sl) \ : "r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "%r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ : "=r" (sh), \ "=&r" (sl) \ : "r" ((USItype) (ah)), \ - "rIJ" ((USItype) (bh)), \ + "rICal" ((USItype) (bh)), \ "r" ((USItype) (al)), \ - "rIJ" ((USItype) (bl))) + "rICal" ((USItype) (bl))) #endif #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ @@ -435,9 +446,39 @@ long __MPN(count_leading_zeros) (UDItype); __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \ : "=r" (sh), "=&r" (sl) \ : "r" (ah), "rI" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC) +/* FIXME: Extend the immediate range for the low word by using both ADDS and + SUBS, since they set carry in the same way. We need separate definitions + for thumb and non-thumb since thumb lacks RSC. */ +#if defined (__thumb__) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ do { \ - if (__builtin_constant_p (al)) \ + if (__builtin_constant_p (ah) && __builtin_constant_p (bh) \ + && (ah) == (bh)) \ + __asm__ ("subs\t%1, %2, %3\n\tsbc\t%0, %0, %0" \ + : "=r" (sh), "=r" (sl) \ + : "r" (al), "rI" (bl) __CLOBBER_CC); \ + else if (__builtin_constant_p (al)) \ + __asm__ ("rsbs\t%1, %5, %4\n\tsbc\t%0, %2, %3" \ + : "=r" (sh), "=&r" (sl) \ + : "r" (ah), "rI" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ + else if (__builtin_constant_p (bl)) \ + __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ + : "=r" (sh), "=&r" (sl) \ + : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ + else \ + __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ + : "=r" (sh), "=&r" (sl) \ + : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ + } while (0) +#else +#define sub_ddmmss(sh, sl, ah, al, bh, bl) \ + do { \ + if (__builtin_constant_p (ah) && __builtin_constant_p (bh) \ + && (ah) == (bh)) \ + __asm__ ("subs\t%1, %2, %3\n\tsbc\t%0, %0, %0" \ + : "=r" (sh), "=r" (sl) \ + : "r" (al), "rI" (bl) __CLOBBER_CC); \ + else if (__builtin_constant_p (al)) \ { \ if (__builtin_constant_p (ah)) \ __asm__ ("rsbs\t%1, %5, %4\n\trsc\t%0, %3, %2" \ @@ -460,21 +501,15 @@ long __MPN(count_leading_zeros) (UDItype); : "rI" (ah), "r" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ } \ else if (__builtin_constant_p (bl)) \ - { \ - if (__builtin_constant_p (bh)) \ - __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ - : "=r" (sh), "=&r" (sl) \ - : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ - else \ - __asm__ ("subs\t%1, %4, %5\n\trsc\t%0, %3, %2" \ - : "=r" (sh), "=&r" (sl) \ - : "rI" (ah), "r" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ - } \ + __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ + : "=r" (sh), "=&r" (sl) \ + : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ else /* only bh might be a constant */ \ __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ : "=r" (sh), "=&r" (sl) \ - : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC);\ + : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ } while (0) +#endif #if defined (__ARM_ARCH_2__) || defined (__ARM_ARCH_2A__) \ || defined (__ARM_ARCH_3__) #define umul_ppmm(xh, xl, a, b) \ @@ -497,18 +532,17 @@ long __MPN(count_leading_zeros) (UDItype); "=&r" (__t0), "=&r" (__t1), "=r" (__t2) \ : "r" ((USItype) (a)), "r" ((USItype) (b)) __CLOBBER_CC); \ } while (0) -#define UMUL_TIME 20 +#ifndef LONGLONG_STANDALONE #define udiv_qrnnd(q, r, n1, n0, d) \ do { UWtype __r; \ (q) = __MPN(udiv_qrnnd) (&__r, (n1), (n0), (d)); \ (r) = __r; \ } while (0) extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); -#define UDIV_TIME 200 +#endif /* LONGLONG_STANDALONE */ #else /* ARMv4 or newer */ #define umul_ppmm(xh, xl, a, b) \ __asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b)) -#define UMUL_TIME 5 #define smul_ppmm(xh, xl, a, b) \ __asm__ ("smull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b)) #ifndef LONGLONG_STANDALONE @@ -519,12 +553,10 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); } while (0) #define UDIV_PREINV_ALWAYS 1 #define UDIV_NEEDS_NORMALIZATION 1 -#define UDIV_TIME 70 #endif /* LONGLONG_STANDALONE */ #endif /* defined(__ARM_ARCH_2__) ... */ #define count_leading_zeros(count, x) count_leading_zeros_gcc_clz(count, x) #define count_trailing_zeros(count, x) count_trailing_zeros_gcc_ctz(count, x) -#define COUNT_LEADING_ZEROS_0 32 #endif /* __arm__ */ #if defined (__aarch64__) && W_TYPE_SIZE == 64 @@ -540,15 +572,25 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); : "=r,r" (sh), "=&r,&r" (sl) \ : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)), \ "r,Z" ((UDItype)(al)), "rI,r" ((UDItype)(bl)) __CLOBBER_CC) +#if __GMP_GNUC_PREREQ (4,9) +#define umul_ppmm(w1, w0, u, v) \ + do { \ + typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ + __ll_UTItype __ll = (__ll_UTItype)(u) * (v); \ + w1 = __ll >> 64; \ + w0 = __ll; \ + } while (0) +#endif +#if !defined (umul_ppmm) #define umul_ppmm(ph, pl, m0, m1) \ do { \ UDItype __m0 = (m0), __m1 = (m1); \ __asm__ ("umulh\t%0, %1, %2" : "=r" (ph) : "r" (__m0), "r" (__m1)); \ (pl) = __m0 * __m1; \ } while (0) +#endif #define count_leading_zeros(count, x) count_leading_zeros_gcc_clz(count, x) #define count_trailing_zeros(count, x) count_trailing_zeros_gcc_ctz(count, x) -#define COUNT_LEADING_ZEROS_0 64 #endif /* __aarch64__ */ #if defined (__clipper__) && W_TYPE_SIZE == 32 @@ -640,11 +682,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); (wh) = __x.__i.__h; \ (wl) = __x.__i.__l; \ } while (0) -#define UMUL_TIME 8 -#define UDIV_TIME 60 -#else -#define UMUL_TIME 40 -#define UDIV_TIME 80 #endif #define count_leading_zeros(count, x) \ do { \ @@ -930,7 +967,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); double d; \ unsigned a[2]; \ } __u; \ - ASSERT ((n) != 0); \ __u.d = (UWtype) (n); \ (c) = 0x3FF + 31 - (__u.a[1] >> 20); \ } while (0) @@ -987,12 +1023,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); #endif /* ! pentium */ -#ifndef UMUL_TIME -#define UMUL_TIME 10 -#endif -#ifndef UDIV_TIME -#define UDIV_TIME 40 -#endif #endif /* 80x86 */ #if defined (__amd64__) && W_TYPE_SIZE == 64 @@ -1006,29 +1036,61 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); : "=r" (sh), "=&r" (sl) \ : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \ "1" ((UDItype)(al)), "rme" ((UDItype)(bl))) +#if X86_ASM_MULX \ + && (HAVE_HOST_CPU_haswell || HAVE_HOST_CPU_broadwell \ + || HAVE_HOST_CPU_skylake || HAVE_HOST_CPU_bd4 || HAVE_HOST_CPU_zen) #define umul_ppmm(w1, w0, u, v) \ - __asm__ ("mulq %3" \ + __asm__ ("mulx\t%3, %0, %1" \ + : "=r" (w0), "=r" (w1) \ + : "%d" ((UDItype)(u)), "rm" ((UDItype)(v))) +#else +#define umul_ppmm(w1, w0, u, v) \ + __asm__ ("mulq\t%3" \ : "=a" (w0), "=d" (w1) \ : "%0" ((UDItype)(u)), "rm" ((UDItype)(v))) +#endif #define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding "=d" */\ __asm__ ("divq %4" /* stringification in K&R C */ \ : "=a" (q), "=d" (r) \ : "0" ((UDItype)(n0)), "1" ((UDItype)(n1)), "rm" ((UDItype)(dx))) -/* bsrq destination must be a 64-bit register, hence UDItype for __cbtmp. */ + +#if HAVE_HOST_CPU_haswell || HAVE_HOST_CPU_broadwell || HAVE_HOST_CPU_skylake \ + || HAVE_HOST_CPU_k10 || HAVE_HOST_CPU_bd1 || HAVE_HOST_CPU_bd2 \ + || HAVE_HOST_CPU_bd3 || HAVE_HOST_CPU_bd4 || HAVE_HOST_CPU_zen \ + || HAVE_HOST_CPU_bobcat || HAVE_HOST_CPU_jaguar +#define count_leading_zeros(count, x) \ + do { \ + /* This is lzcnt, spelled for older assemblers. Destination and */ \ + /* source must be a 64-bit registers, hence cast and %q. */ \ + __asm__ ("rep;bsr\t%1, %q0" : "=r" (count) : "rm" ((UDItype)(x))); \ + } while (0) +#define COUNT_LEADING_ZEROS_0 64 +#else #define count_leading_zeros(count, x) \ do { \ UDItype __cbtmp; \ ASSERT ((x) != 0); \ - __asm__ ("bsrq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ + __asm__ ("bsr\t%1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ (count) = __cbtmp ^ 63; \ } while (0) -/* bsfq destination must be a 64-bit register, "%q0" forces this in case - count is only an int. */ +#endif + +#if HAVE_HOST_CPU_bd2 || HAVE_HOST_CPU_bd3 || HAVE_HOST_CPU_bd4 \ + || HAVE_HOST_CPU_zen || HAVE_HOST_CPU_jaguar +#define count_trailing_zeros(count, x) \ + do { \ + /* This is tzcnt, spelled for older assemblers. Destination and */ \ + /* source must be a 64-bit registers, hence cast and %q. */ \ + __asm__ ("rep;bsf\t%1, %q0" : "=r" (count) : "rm" ((UDItype)(x))); \ + } while (0) +#define COUNT_TRAILING_ZEROS_0 64 +#else #define count_trailing_zeros(count, x) \ do { \ ASSERT ((x) != 0); \ - __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ + __asm__ ("bsf\t%1, %q0" : "=r" (count) : "rm" ((UDItype)(x))); \ } while (0) +#endif #endif /* __amd64__ */ #if defined (__i860__) && W_TYPE_SIZE == 32 @@ -1109,12 +1171,10 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); __asm__ ("mulu%.l %3,%1:%0" \ : "=d" (w0), "=d" (w1) \ : "%0" ((USItype)(u)), "dmi" ((USItype)(v))) -#define UMUL_TIME 45 #define udiv_qrnnd(q, r, n1, n0, d) \ __asm__ ("divu%.l %4,%1:%0" \ : "=d" (q), "=d" (r) \ : "0" ((USItype)(n0)), "1" ((USItype)(n1)), "dmi" ((USItype)(d))) -#define UDIV_TIME 90 #define sdiv_qrnnd(q, r, n1, n0, d) \ __asm__ ("divs%.l %4,%1:%0" \ : "=d" (q), "=d" (r) \ @@ -1148,8 +1208,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); "=d" (__umul_tmp1), "=&d" (__umul_tmp2) \ : "%2" ((USItype)(a)), "d" ((USItype)(b))); \ } while (0) -#define UMUL_TIME 100 -#define UDIV_TIME 400 #endif /* not mc68020 */ /* The '020, '030, '040 and '060 have bitfield insns. GCC 3.4 defines __mc68020__ when in CPU32 mode, check for __mcpu32__ to @@ -1202,11 +1260,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); __asm__ ("divu.d %0,%1,%2" \ : "=r" (__q.__ll) : "r" (__x.__ll), "r" (d)); \ (r) = (n0) - __q.__l * (d); (q) = __q.__l; }) -#define UMUL_TIME 5 -#define UDIV_TIME 25 -#else -#define UMUL_TIME 17 -#define UDIV_TIME 150 #endif /* __m88110__ */ #endif /* __m88000__ */ @@ -1228,12 +1281,18 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); __asm__ ("multu %2,%3\n\tmflo %0\n\tmfhi %1" \ : "=d" (w0), "=d" (w1) : "d" (u), "d" (v)) #endif -#define UMUL_TIME 10 -#define UDIV_TIME 100 #endif /* __mips */ #if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64 -#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__) +#if defined (_MIPS_ARCH_MIPS64R6) +#define umul_ppmm(w1, w0, u, v) \ + do { \ + UDItype __m0 = (u), __m1 = (v); \ + (w0) = __m0 * __m1; \ + __asm__ ("dmuhu\t%0, %1, %2" : "=d" (w1) : "d" (__m0), "d" (__m1)); \ + } while (0) +#endif +#if !defined (umul_ppmm) && (__GMP_GNUC_PREREQ (4,4) || defined(__clang__)) #define umul_ppmm(w1, w0, u, v) \ do { \ typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ @@ -1254,8 +1313,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); : "=d" (w0), "=d" (w1) \ : "d" ((UDItype)(u)), "d" ((UDItype)(v))) #endif -#define UMUL_TIME 20 -#define UDIV_TIME 140 #endif /* __mips */ #if defined (__mmix__) && W_TYPE_SIZE == 64 @@ -1320,33 +1377,41 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); do { \ if (__builtin_constant_p (bh) && (bh) == 0) \ __asm__ ("add%I4c %1,%3,%4\n\taddze %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl)); \ + : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl) \ + __CLOBBER_CC); \ else if (__builtin_constant_p (bh) && (bh) == ~(USItype) 0) \ __asm__ ("add%I4c %1,%3,%4\n\taddme %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl)); \ + : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl) \ + __CLOBBER_CC); \ else \ __asm__ ("add%I5c %1,%4,%5\n\tadde %0,%2,%3" \ - : "=r" (sh), "=&r" (sl) \ - : "r" (ah), "r" (bh), "%r" (al), "rI" (bl)); \ + : "=r" (sh), "=&r" (sl) \ + : "r" (ah), "r" (bh), "%r" (al), "rI" (bl) \ + __CLOBBER_CC); \ } while (0) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ do { \ if (__builtin_constant_p (ah) && (ah) == 0) \ __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl));\ + : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl) \ + __CLOBBER_CC); \ else if (__builtin_constant_p (ah) && (ah) == ~(USItype) 0) \ __asm__ ("subf%I3c %1,%4,%3\n\tsubfme %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl));\ + : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl) \ + __CLOBBER_CC); \ else if (__builtin_constant_p (bh) && (bh) == 0) \ __asm__ ("subf%I3c %1,%4,%3\n\taddme %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl));\ + : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl) \ + __CLOBBER_CC); \ else if (__builtin_constant_p (bh) && (bh) == ~(USItype) 0) \ __asm__ ("subf%I3c %1,%4,%3\n\taddze %0,%2" \ - : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl));\ + : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl) \ + __CLOBBER_CC); \ else \ __asm__ ("subf%I4c %1,%5,%4\n\tsubfe %0,%3,%2" \ : "=r" (sh), "=&r" (sl) \ - : "r" (ah), "r" (bh), "rI" (al), "r" (bl)); \ + : "r" (ah), "r" (bh), "rI" (al), "r" (bl) \ + __CLOBBER_CC); \ } while (0) #define count_leading_zeros(count, x) \ __asm__ ("cntlzw %0,%1" : "=r" (count) : "r" (x)) @@ -1368,23 +1433,17 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); (pl) = __m0 * __m1; \ } while (0) #endif -#define UMUL_TIME 15 #define smul_ppmm(ph, pl, m0, m1) \ do { \ SItype __m0 = (m0), __m1 = (m1); \ __asm__ ("mulhw %0,%1,%2" : "=r" (ph) : "%r" (m0), "r" (m1)); \ (pl) = __m0 * __m1; \ } while (0) -#define SMUL_TIME 14 -#define UDIV_TIME 120 #else -#define UMUL_TIME 8 #define smul_ppmm(xh, xl, m0, m1) \ __asm__ ("mul %0,%2,%3" : "=r" (xh), "=q" (xl) : "r" (m0), "r" (m1)) -#define SMUL_TIME 4 #define sdiv_qrnnd(q, r, nh, nl, d) \ __asm__ ("div %0,%2,%4" : "=r" (q), "=q" (r) : "r" (nh), "1" (nl), "r" (d)) -#define UDIV_TIME 100 #endif #endif /* 32-bit POWER architecture variants. */ @@ -1400,81 +1459,60 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); __asm__ ("add%I4c %1,%3,%4\n\taddze %0,%2" \ : "=r" (sh), "=&r" (sl) \ : "r" ((UDItype)(ah)), \ - "%r" ((UDItype)(al)), "rI" ((UDItype)(bl))); \ + "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ + __CLOBBER_CC); \ else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ __asm__ ("add%I4c %1,%3,%4\n\taddme %0,%2" \ : "=r" (sh), "=&r" (sl) \ : "r" ((UDItype)(ah)), \ - "%r" ((UDItype)(al)), "rI" ((UDItype)(bl))); \ + "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ + __CLOBBER_CC); \ else \ __asm__ ("add%I5c %1,%4,%5\n\tadde %0,%2,%3" \ : "=r" (sh), "=&r" (sl) \ : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ - "%r" ((UDItype)(al)), "rI" ((UDItype)(bl))); \ + "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ + __CLOBBER_CC); \ } while (0) -/* We use "*rI" for the constant operand here, since with just "I", gcc barfs. - This might seem strange, but gcc folds away the dead code late. */ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ do { \ - if (__builtin_constant_p (bl) && bl > -0x8000 && bl <= 0x8000) { \ - if (__builtin_constant_p (ah) && (ah) == 0) \ - __asm__ ("addic %1,%3,%4\n\tsubfze %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl)))); \ - else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ - __asm__ ("addic %1,%3,%4\n\tsubfme %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl)))); \ - else if (__builtin_constant_p (bh) && (bh) == 0) \ - __asm__ ("addic %1,%3,%4\n\taddme %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), \ - "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl)))); \ - else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ - __asm__ ("addic %1,%3,%4\n\taddze %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), \ - "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl)))); \ - else \ - __asm__ ("addic %1,%4,%5\n\tsubfe %0,%3,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl)))); \ - } else { \ - if (__builtin_constant_p (ah) && (ah) == 0) \ - __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "r" ((UDItype)(bl))); \ - else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ - __asm__ ("subf%I3c %1,%4,%3\n\tsubfme %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "r" ((UDItype)(bl))); \ - else if (__builtin_constant_p (bh) && (bh) == 0) \ - __asm__ ("subf%I3c %1,%4,%3\n\taddme %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), \ - "rI" ((UDItype)(al)), "r" ((UDItype)(bl))); \ - else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ - __asm__ ("subf%I3c %1,%4,%3\n\taddze %0,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), \ - "rI" ((UDItype)(al)), "r" ((UDItype)(bl))); \ - else \ - __asm__ ("subf%I4c %1,%5,%4\n\tsubfe %0,%3,%2" \ - : "=r" (sh), "=&r" (sl) \ - : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ - "rI" ((UDItype)(al)), "r" ((UDItype)(bl))); \ - } \ + if (__builtin_constant_p (ah) && (ah) == 0) \ + __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2" \ + : "=r" (sh), "=&r" (sl) \ + : "r" ((UDItype)(bh)), \ + "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ + __CLOBBER_CC); \ + else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ + __asm__ ("subf%I3c %1,%4,%3\n\tsubfme %0,%2" \ + : "=r" (sh), "=&r" (sl) \ + : "r" ((UDItype)(bh)), \ + "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ + __CLOBBER_CC); \ + else if (__builtin_constant_p (bh) && (bh) == 0) \ + __asm__ ("subf%I3c %1,%4,%3\n\taddme %0,%2" \ + : "=r" (sh), "=&r" (sl) \ + : "r" ((UDItype)(ah)), \ + "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ + __CLOBBER_CC); \ + else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ + __asm__ ("subf%I3c %1,%4,%3\n\taddze %0,%2" \ + : "=r" (sh), "=&r" (sl) \ + : "r" ((UDItype)(ah)), \ + "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ + __CLOBBER_CC); \ + else \ + __asm__ ("subf%I4c %1,%5,%4\n\tsubfe %0,%3,%2" \ + : "=r" (sh), "=&r" (sl) \ + : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ + "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ + __CLOBBER_CC); \ } while (0) #endif /* ! _LONG_LONG_LIMB */ #define count_leading_zeros(count, x) \ __asm__ ("cntlzd %0,%1" : "=r" (count) : "r" (x)) #define COUNT_LEADING_ZEROS_0 64 -#if 0 && (__GMP_GNUC_PREREQ (4,4) || defined(__clang__)) /* Disable, this results in libcalls! */ +/* XXXMRG GCC-9 era, pre-req went from 4.4 to 4.8, check this. */ +#if 0 && (__GMP_GNUC_PREREQ (4,8) || defined(__clang__)) /* Disable, this results in libcalls! */ #define umul_ppmm(w1, w0, u, v) \ do { \ typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ @@ -1491,15 +1529,12 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); (pl) = __m0 * __m1; \ } while (0) #endif -#define UMUL_TIME 15 #define smul_ppmm(ph, pl, m0, m1) \ do { \ DItype __m0 = (m0), __m1 = (m1); \ __asm__ ("mulhd %0,%1,%2" : "=r" (ph) : "%r" (__m0), "r" (__m1)); \ (pl) = __m0 * __m1; \ } while (0) -#define SMUL_TIME 14 /* ??? */ -#define UDIV_TIME 120 /* ??? */ #endif /* 64-bit PowerPC. */ #if defined (__pyr__) && W_TYPE_SIZE == 32 @@ -1560,8 +1595,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); : "=r" (ph), "=r" (pl) \ : "%r" ((USItype)(m0)), "r" ((USItype)(m1)) \ : "r2") -#define UMUL_TIME 20 -#define UDIV_TIME 200 #define count_leading_zeros(count, x) \ do { \ if ((x) >= 0x10000) \ @@ -1576,11 +1609,19 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); } while (0) #endif /* RT/ROMP */ +#if defined (__riscv64) && W_TYPE_SIZE == 64 +#define umul_ppmm(ph, pl, u, v) \ + do { \ + UDItype __u = (u), __v = (v); \ + (pl) = __u * __v; \ + __asm__ ("mulhu\t%2, %1, %0" : "=r" (ph) : "%r" (__u), "r" (__v)); \ + } while (0) +#endif + #if (defined (__SH2__) || defined (__SH3__) || defined (__SH4__)) && W_TYPE_SIZE == 32 #define umul_ppmm(w1, w0, u, v) \ __asm__ ("dmulu.l %2,%3\n\tsts macl,%1\n\tsts mach,%0" \ : "=r" (w1), "=r" (w0) : "r" (u), "r" (v) : "macl", "mach") -#define UMUL_TIME 5 #endif #if defined (__sparc__) && W_TYPE_SIZE == 32 @@ -1628,10 +1669,8 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); but INTERPRETED AS UNSIGNED. */ #define umul_ppmm(w1, w0, u, v) \ __asm__ ("umul %2,%3,%1;rd %%y,%0" : "=r" (w1), "=r" (w0) : "r" (u), "r" (v)) -#define UMUL_TIME 5 #if HAVE_HOST_CPU_supersparc -#define UDIV_TIME 60 /* SuperSPARC timing */ #else /* Don't use this on SuperSPARC because its udiv only handles 53 bit dividends and will trap to the kernel for the rest. */ @@ -1643,7 +1682,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); (r) = (n0) - __q * (d); \ (q) = __q; \ } while (0) -#define UDIV_TIME 25 #endif /* HAVE_HOST_CPU_supersparc */ #else /* ! __sparc_v8__ */ @@ -1652,7 +1690,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); instructions scan (ffs from high bit) and divscc. */ #define umul_ppmm(w1, w0, u, v) \ __asm__ ("umul %2,%3,%1;rd %%y,%0" : "=r" (w1), "=r" (w0) : "r" (u), "r" (v)) -#define UMUL_TIME 5 #define udiv_qrnnd(q, r, n1, n0, d) \ __asm__ ("! Inlined udiv_qrnnd\n" \ " wr %%g0,%2,%%y ! Not a delayed write for sparclite\n" \ @@ -1695,7 +1732,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); "1: ! End of inline udiv_qrnnd" \ : "=r" (q), "=r" (r) : "r" (n1), "r" (n0), "rI" (d) \ : "%g1" __AND_CLOBBER_CC) -#define UDIV_TIME 37 #define count_leading_zeros(count, x) \ __asm__ ("scan %1,1,%0" : "=r" (count) : "r" (x)) /* Early sparclites return 63 for an argument of 0, but they warn that future @@ -1749,7 +1785,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); " rd %%y,%1" \ : "=r" (w1), "=r" (w0) : "%rI" (u), "r" (v) \ : "%g1", "%g2" __AND_CLOBBER_CC) -#define UMUL_TIME 39 /* 39 instructions */ #endif #ifndef udiv_qrnnd #ifndef LONGLONG_STANDALONE @@ -1759,9 +1794,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); (r) = __r; \ } while (0) extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype); -#ifndef UDIV_TIME -#define UDIV_TIME 140 -#endif #endif /* LONGLONG_STANDALONE */ #endif /* udiv_qrnnd */ #endif /* __sparc__ */ @@ -2096,14 +2128,15 @@ extern __longlong_h_C UWtype mpn_udiv_qrnnd_r (UWtype, UWtype, UWtype, UWtype *) /* If the processor has no udiv_qrnnd but sdiv_qrnnd, go through __udiv_w_sdiv (defined in libgcc or elsewhere). */ -#if !defined (udiv_qrnnd) && defined (sdiv_qrnnd) && !defined(LONGLONG_STANDALONE) +#if !defined (udiv_qrnnd) && defined (sdiv_qrnnd) \ + && ! defined (LONGLONG_STANDALONE) #define udiv_qrnnd(q, r, nh, nl, d) \ do { \ UWtype __r; \ (q) = __MPN(udiv_w_sdiv) (&__r, nh, nl, d); \ (r) = __r; \ } while (0) -__GMP_DECLSPEC UWtype __MPN(udiv_w_sdiv) (UWtype *, UWtype, UWtype, UWtype); +__MPFR_DECLSPEC UWtype __MPN(udiv_w_sdiv) (UWtype *, UWtype, UWtype, UWtype); #endif /* If udiv_qrnnd was not defined for this processor, use __udiv_qrnnd_c. */ @@ -2147,7 +2180,7 @@ __GMP_DECLSPEC UWtype __MPN(udiv_w_sdiv) (UWtype *, UWtype, UWtype, UWtype); #endif #ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB -extern const unsigned char __GMP_DECLSPEC __clz_tab[129]; +extern const unsigned char __MPFR_DECLSPEC __clz_tab[129]; #endif #if !defined (count_trailing_zeros) @@ -2196,12 +2229,3 @@ extern const unsigned char __GMP_DECLSPEC __clz_tab[129]; #ifndef UDIV_PREINV_ALWAYS #define UDIV_PREINV_ALWAYS 0 #endif - -/* Give defaults for UMUL_TIME and UDIV_TIME. */ -#ifndef UMUL_TIME -#define UMUL_TIME 1 -#endif - -#ifndef UDIV_TIME -#define UDIV_TIME UMUL_TIME -#endif diff --git a/external/lgpl3/mpfr/dist/src/powerpc32/mparam.h b/external/lgpl3/mpfr/dist/src/powerpc32/mparam.h deleted file mode 100644 index 6cc3aa280c54..000000000000 --- a/external/lgpl3/mpfr/dist/src/powerpc32/mparam.h +++ /dev/null @@ -1,232 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2010-10-22, gcc 4.2.4, gmp 5.0.1 */ -/* RS/6000 7025 F50 kindly provided by David Kirkby, under AIX 5.3 */ -/* used MPFR svn revision 7238 */ - -#define MPFR_MULHIGH_TAB \ - -1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,40,40,40,40,40,40, \ - 40,40,40,40,40,44,48,48,48,48,48,48,48,48,48,48, \ - 48,48,48,48,52,52,52,52,52,52,52,52,52,52,52,64, \ - 64,64,64,64,74,74,74,75,74,75,75,75,75,75,75,75, \ - 75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75, \ - 75,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, \ - 105,105,105,105,105,105,105,105,105,105,105,105,105,105,105,105, \ - 105,105,124,124,124,124,124,124,124,124,124,124,124,124,124,124, \ - 124,124,124,124,124,124,140,140,140,140,140,140,140,140,156,156, \ - 156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156, \ - 156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156, \ - 156,156,156,156,156,156,156,156,156,156,156,156,156,156,156,156, \ - 156,156,156,156,156,156,156,156,186,186,186,186,186,186,186,186, \ - 186,186,186,186,186,186,186,186,186,186,186,186,186,186,210,210, \ - 210,210,234,234,234,234,234,234,234,234,234,234,234,234,234,234, \ - 234,234,234,234,234,234,234,233,234,234,234,234,234,234,234,234, \ - 234,234,234,234,234,234,234,234,234,234,234,234,234,234,234,234, \ - 234,234,234,234,234,234,234,234,234,234,234,234,234,234,234,234, \ - 234,234,234,234,234,234,234,234,234,234,234,234,234,234,234,234, \ - 234,280,280,280,280,280,280,280,312,312,312,312,312,312,312,312, \ - 312,312,312,312,312,312,312,312,312,312,312,312,312,312,312,312, \ - 312,312,312,312,312,312,312,312,312,312,312,312,312,312,312,312, \ - 312,312,312,312,312,312,312,312,312,344,344,344,344,344,344,312, \ - 344,344,344,344,344,344,344,344,344,344,344,344,344,344,344,344, \ - 344,344,344,344,344,344,376,376,376,376,376,376,376,376,376,376, \ - 376,376,376,376,376,376,376,376,376,376,376,376,376,376,376,376, \ - 376,376,376,376,376,376,376,376,376,376,376,376,376,376,376,376, \ - 376,376,376,376,376,376,376,376,376,376,376,376,376,376,376,376, \ - 376,376,376,376,376,376,376,376,408,408,408,408,408,408,408,408, \ - 408,408,408,408,408,408,408,408,408,407,408,408,408,408,408,408, \ - 408,408,408,408,408,408,408,408,408,408,408,408,408,408,408,408, \ - 408,408,408,408,408,408,408,408,408,408,408,408,408,408,408,408, \ - 408,408,408,408,408,408,408,408,408,408,408,408,408,408,408,408, \ - 408,408,408,408,408,408,408,408,408,408,408,408,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,584,584,584,584,584,584,584,584,584,584,584, \ - 584,584,584,584,584,584,584,584,583,584,583,584,584,584,584,584, \ - 592,584,592,584,592,592,592,592,592,584,592,592,592,584,584,584, \ - 584,584,584,584,584,584,584,584,584,584,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,591,592,591,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,591,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,592,592, \ - 592,592,592,592,592,592,592,592,592,592,592,592,592,592,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,735,736,735,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,736,736,736, \ - 736,736,736,736,736,736,736,736,736,736,736,736,736,832,832,736, \ - 832,831,832,832,832,832,832,832,832,832,832,832,832,832,832,832, \ - 832,832,831,832,832,832,832,832,832,832,832,832,832,832,832,832, \ - 832,832,832,832,832,832,832,832,832,832,832,832,832,832,832,832 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,0,0,0,0,0,0,0,7,8,8,9,9, \ - 10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17, \ - 18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25, \ - 26,26,27,28,28,28,30,32,32,32,32,32,32,32,34,34, \ - 36,36,36,36,36,40,40,40,40,40,40,40,42,42,42,44, \ - 44,44,46,46,46,46,46,46,46,46,47,47,56,56,56,56, \ - 56,56,56,56,60,64,64,64,64,64,64,64,64,64,64,64, \ - 64,64,64,68,68,72,72,72,72,72,72,72,72,76,76,76, \ - 76,76,76,76,68,72,72,72,72,72,76,76,76,76,76,76, \ - 76,76,76,76,76,76,77,77,87,90,93,93,93,93,93,93, \ - 93,96,99,99,99,99,93,96,93,93,96,99,99,102,99,99, \ - 105,102,105,105,105,105,108,108,108,111,111,111,111,111,117,117, \ - 117,117,117,117,117,117,123,123,123,123,123,123,123,126,126,129, \ - 129,123,129,129,129,129,129,129,129,129,129,129,129,129,129,129, \ - 129,123,123,123,123,123,123,123,126,129,129,129,129,129,129,129, \ - 129,129,129,129,129,129,164,164,164,164,164,164,164,164,164,164, \ - 172,172,172,172,172,172,156,156,156,156,156,156,156,156,156,163, \ - 164,164,164,164,164,171,171,171,172,172,172,172,172,172,172,180, \ - 180,179,180,180,180,180,180,180,180,180,180,180,180,180,180,180, \ - 180,180,180,180,198,198,198,198,180,198,198,198,210,210,210,210, \ - 210,210,210,210,210,210,210,222,222,222,222,222,222,222,222,222, \ - 222,222,222,222,234,234,234,234,234,234,234,234,234,234,234,234, \ - 234,234,246,246,246,246,246,246,246,246,246,246,246,246,246,246, \ - 258,246,246,258,258,258,258,258,258,258,258,258,258,270,270,270, \ - 270,270,270,270,270,270,270,270,270,270,270,270,270,270,270,270, \ - 270,270,270,270,270,270,270,270,270,270,270,270,270,270,270,270, \ - 270,270,270,270,270,270,270,270,270,270,270,270,270,270,312,270, \ - 312,312,312,270,270,270,270,270,270,270,270,328,328,312,328,328, \ - 328,328,328,328,328,328,328,344,344,312,328,344,328,328,328,328, \ - 328,328,328,328,328,328,328,328,328,328,328,327,328,328,328,328, \ - 328,344,328,328,328,328,328,328,344,344,344,344,344,344,344,344, \ - 344,344,344,360,360,360,360,360,360,360,360,360,360,360,360,360, \ - 360,360,360,360,360,360,360,360,360,360,328,328,360,328,328,328, \ - 328,328,360,328,328,328,328,328,328,328,328,344,344,344,344,344, \ - 344,344,344,344,344,344,344,344,344,360,360,360,360,360,360,360, \ - 360,360,360,360,360,360,360,360,360,360,360,360,360,360,360,360, \ - 360,360,360,360,360,360,360,360,360,360,360,360,360,360,360,360, \ - 360,360,360,360,360,360,360,360,360,360,360,360,360,360,360,360, \ - 360,360,360,360,360,360,360,360,360,360,360,360,360,360,360,360, \ - 408,408,408,408,408,408,408,408,408,408,440,440,440,440,440,439, \ - 440,440,440,440,440,440,440,440,440,440,440,440,440,440,440,440, \ - 440,440,440,440,440,440,440,440,440,440,440,440,440,472,472,440, \ - 440,471,504,472,472,472,472,472,472,472,472,472,472,472,472,472, \ - 472,472,472,472,472,472,472,472,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,504,504,504,504,536,536,536,536,536,536,536, \ - 536,536,536,536,536,536,536,536,536,536,536,536,536,536,536,536, \ - 536,536,536,536,536,536,536,536,536,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 504,504,504,504,568,568,504,504,504,504,504,504,504,504,504,504, \ - 504,504,504,504,504,600,600,600,600,600,600,600,536,536,536,535, \ - 535,536,536,536,536,536,536,536,536,536,536,536,536,536,536,536, \ - 536,536,536,536,536,536,536,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,567,568,568,568,568,568,568, \ - 568,568,568,568,568,567,568,568,568,568,568,568,600,600,600,599, \ - 600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600, \ - 600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600, \ - 600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600, \ - 600,600,568,568,568,568,568,568,568,568,568,568,568,568,568,568, \ - 568,568,568,568,568,568,568,568,568,568,568,600,600,600,600,600, \ - 600,600,600,600,600,600,600,600,599,600,600,600,600,600,600,600, \ - 600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600, \ - 600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,8,7,10,9,12,13,12,9, \ - 12,12,12,12,12,12,15,15,16,15,16,16,16,19,20,20, \ - 20,19,19,19,20,20,21,21,22,23,23,24,25,25,25,25, \ - 26,26,27,27,28,28,29,29,31,31,31,31,32,35,33,33, \ - 34,36,35,35,36,36,37,37,38,38,40,39,40,40,41,41, \ - 42,42,43,48,44,48,47,45,47,47,47,48,48,48,49,49, \ - 50,51,51,51,52,52,53,53,54,55,56,55,56,63,57,64, \ - 63,64,64,64,64,64,62,64,64,63,64,64,72,64,72,65, \ - 66,72,72,71,72,71,71,70,80,71,71,71,80,72,73,80, \ - 74,79,80,80,80,80,80,80,80,79,80,80,80,80,81,81, \ - 82,88,85,95,84,96,96,88,96,96,95,95,96,96,96,96, \ - 96,95,96,104,96,96,96,94,96,95,104,96,96,96,104,104, \ - 98,104,100,104,104,104,104,104,103,104,104,103,104,104,105,105, \ - 106,106,128,110,108,128,128,128,128,128,128,128,128,128,128,128, \ - 128,128,128,128,127,128,128,128,127,124,128,128,126,126,128,125, \ - 128,128,127,128,128,128,128,128,128,127,128,128,148,128,146,129, \ - 130,148,144,147,150,148,150,148,148,150,147,150,144,148,150,148, \ - 150,150,160,148,160,148,148,150,148,149,150,150,160,148,150,148, \ - 148,150,147,150,150,150,149,149,160,150,151,151,152,156,156,156, \ - 154,156,160,160,160,156,159,157,158,160,160,160,160,160,161,161, \ - 162,168,176,192,186,192,186,186,186,192,192,184,192,186,184,192, \ - 185,186,191,192,192,191,186,192,192,192,192,192,192,192,192,192, \ - 192,190,192,192,190,192,192,192,186,192,192,192,192,192,192,192, \ - 192,192,192,192,192,192,192,191,192,192,191,192,192,208,208,208, \ - 194,208,208,208,208,207,208,208,208,208,207,208,206,208,201,208, \ - 208,208,204,208,208,208,208,208,208,208,208,208,208,208,209,209, \ - 210,210,211,211,212,248,256,216,216,248,254,256,256,248,255,256, \ - 256,256,256,255,256,256,256,255,256,256,256,248,256,256,248,256, \ - 256,255,256,256,254,256,256,256,248,255,256,256,256,256,254,256, \ - 256,248,256,247,256,256,256,256,256,256,256,255,255,255,256,256, \ - 256,254,256,256,253,255,256,256,256,255,256,256,256,253,256,288, \ - 256,256,296,256,256,296,300,296,296,288,300,299,312,312,312,312, \ - 288,312,294,311,312,312,299,300,312,296,312,300,300,296,295,299, \ - 312,300,310,312,296,312,310,312,312,311,312,312,311,312,312,312, \ - 312,312,311,312,312,312,310,311,312,310,312,312,310,311,311,312, \ - 312,312,312,312,299,300,300,312,312,312,311,312,312,312,312,312, \ - 312,312,312,312,310,300,311,310,312,312,312,312,308,300,312,312, \ - 312,310,311,310,311,311,312,301,312,312,312,311,312,312,312,312, \ - 311,312,312,312,312,312,312,312,312,312,311,312,312,312,313,313, \ - 314,314,315,320,320,372,320,320,320,372,372,371,371,372,324,372, \ - 371,371,372,370,369,371,371,372,372,372,372,372,370,370,372,370, \ - 371,372,370,372,372,372,372,372,371,371,372,372,370,372,372,372, \ - 370,372,372,372,370,372,372,370,372,370,370,371,372,371,384,372, \ - 371,384,368,372,384,370,383,372,384,383,384,384,384,384,384,372, \ - 372,384,372,372,369,370,372,370,372,368,372,372,372,372,371,370, \ - 372,372,371,416,384,384,384,416,415,383,383,416,384,384,372,372, \ - 416,370,371,372,372,415,373,417,415,416,384,384,384,416,416,417, \ - 417,416,384,416,416,384,415,415,416,384,414,416,414,416,416,417, \ - 386,408,416,416,416,408,416,416,414,416,417,417,417,416,414,416, \ - 415,416,416,416,414,416,408,415,415,417,414,407,415,416,416,415, \ - 416,416,417,416,416,415,416,416,416,416,415,416,416,416,419,415, \ - 416,416,415,414,415,416,417,413,416,417,416,416,416,416,417,417, \ - 418,418,419,419,420,420,421,421,422,444,432,430,496,443,496,496, \ - 432,432,432,468,468,468,468,444,495,466,496,496,496,494,496,496, \ - 496,468,512,494,496,496,496,496,468,496,493,496,492,496,496,512, \ - 496,496,496,495,495,495,496,496,496,496,496,512,496,496,512,496, \ - 496,493,496,496,496,509,496,512,512,496,512,496,512,512,496,495, \ - 496,512,511,511,512,512,512,511,512,511,495,496,511,511,512,511, \ - 512,512,493,495,495,495,512,493,495,560,496,496,496,496,496,560, \ - 496,560,492,496,560,495,494,496,496,495,496,495,496,560,511,496, \ - 512,509,512,495,494,496,511,496,560,496,512,512,511,496,575,512, \ - 560,496,496,495,585,511,621,495,621,511,622,624,623,511,624,620, \ - 624,623,511,620,620,624,591,623,624,622,623,620,624,613,624,624, \ - 560,623,624,624,624,621,622,623,624,623,576,624,624,624,624,620 \ - -#define MPFR_MUL_THRESHOLD 8 /* limbs */ -#define MPFR_SQR_THRESHOLD 1 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 530 /* bits */ -#define MPFR_EXP_THRESHOLD 7030 /* bits */ -#define MPFR_SINCOS_THRESHOLD 10754 /* bits */ -#define MPFR_AI_THRESHOLD1 -30447 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 3973 -#define MPFR_AI_THRESHOLD3 46501 -/* Tuneup completed successfully, took 12578 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/vasprintf.c b/external/lgpl3/mpfr/dist/src/vasprintf.c index 6a6ec03c73ea..6173f149c977 100644 --- a/external/lgpl3/mpfr/dist/src/vasprintf.c +++ b/external/lgpl3/mpfr/dist/src/vasprintf.c @@ -1,7 +1,7 @@ /* mpfr_vasnprintf_aux -- helper function for the formatted output functions (printf functions family). -Copyright 2007-2018 Free Software Foundation, Inc. +Copyright 2007-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -18,27 +18,38 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., +https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ /* If the number of output characters is larger than INT_MAX, the - ISO C99 standard is silent, but POSIX says concerning the snprintf() - function: - "[EOVERFLOW] The value of n is greater than {INT_MAX} or the - number of bytes needed to hold the output excluding the - terminating null is greater than {INT_MAX}." See: - http://www.opengroup.org/onlinepubs/009695399/functions/fprintf.html - But it doesn't say anything concerning the other printf-like functions. - A defect report has been submitted to austin-review-l (item 2532). - So, for the time being, we return a negative value and set the erange - flag, and set errno to EOVERFLOW in POSIX system. */ + ISO C99 / C11 standards are silent, but POSIX[*] requires the + function to return a negative value and set errno to EOVERFLOW. + [*] The Open Group Base Specifications Issue 7, 2018 edition + IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) + http://pubs.opengroup.org/onlinepubs/9699919799/functions/fprintf.html + This follows a defect report submitted in 2007 to austin-review-l. + Even in case of such a failure (just because of the limitation on int), + we try to support %n, %ln, %jn when possible. That's why the sizes (or + lengths) are expressed using mpfr_intmax_t in the code below. */ -/* Note: Due to limitations from the C standard and GMP, if - size_t < unsigned int (which is allowed by the C standard but unlikely - to occur on any platform), the behavior is undefined for output that - would reach SIZE_MAX = (size_t) -1 (if the result cannot be delivered, - there should be an assertion failure, but this could not be tested). */ +/* Notes about limitations on some platforms: + Due to limitations from the C standard and GMP, if size_t < unsigned int + (which is allowed by the C standard but unlikely to occur on any + platform), the behavior is undefined for output that would reach + SIZE_MAX = (size_t) -1 (if the result cannot be delivered, there should + be an assertion failure, but this could not be tested). + + The stdarg(3) Linux man page says: + On some systems, va_end contains a closing '}' matching a '{' in + va_start, so that both macros must occur in the same function, + and in a way that allows this. + However, the only requirement from ISO C is that both macros must be + invoked in the same function (MPFR uses va_copy instead of va_start, + but the requirement is the same). Here, MPFR just follows ISO C. +*/ + +/* Needed due to the tests on HAVE_STDARG and MPFR_USE_MINI_GMP */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -73,7 +84,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include #define MPFR_NEED_LONGLONG_H -#include "mpfr-intmax.h" +#define MPFR_NEED_INTMAX_H #include "mpfr-impl.h" /* Define a length modifier corresponding to mpfr_prec_t. @@ -100,45 +111,49 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #define MPFR_INF_STRING_UC "INF" #define MPFR_INF_STRING_LENGTH 3 +#define DEFAULT_DECIMAL_PREC 6 + /* The implicit \0 is useless, but we do not write num_to_text[16] otherwise g++ complains. */ static const char num_to_text[] = "0123456789abcdef"; /* some macro and functions for parsing format string */ -/* Read an integer; saturate to INT_MAX. */ -#define READ_INT(ap, format, specinfo, field, label_out) \ +/* Read an integer var of type mpfr_intmax_t. In case of overflow, set + overflow to 1. + Note: Since mpfr_intmax_t = int is theoretically possible, all values + of var are potentially valid values (via '*'). Hence the need of an + overflow flag instead of a special value that would indicate overflow. + Saturating would not be OK either as the maximum value could be + meaningful with %jn and/or in the case mpfr_intmax_t = int, for + MPFR_PREC_ARG. +*/ +#define READ_INT(ap, format, var) \ do { \ - while (*(format)) \ + MPFR_ASSERTD ((var) == 0); \ + if (*(format) == '*') \ { \ - int _i; \ - switch (*(format)) \ - { \ - case '0': \ - case '1': \ - case '2': \ - case '3': \ - case '4': \ - case '5': \ - case '6': \ - case '7': \ - case '8': \ - case '9': \ - specinfo.field = (specinfo.field <= INT_MAX / 10) ? \ - specinfo.field * 10 : INT_MAX; \ - _i = *(format) - '0'; \ - MPFR_ASSERTN (_i >= 0 && _i <= 9); \ - specinfo.field = (specinfo.field <= INT_MAX - _i) ? \ - specinfo.field + _i : INT_MAX; \ - ++(format); \ - break; \ - case '*': \ - specinfo.field = va_arg ((ap), int); \ - ++(format); \ - default: \ - goto label_out; \ - } \ + (var) = va_arg ((ap), int); \ + ++(format); \ } \ + else \ + for ( ; *(format) >= '0' && *(format) <= '9' ; ++(format)) \ + if (!(overflow)) \ + { \ + if ((var) > MPFR_INTMAX_MAX / 10) \ + (overflow) = 1; \ + else \ + { \ + int _i; \ + (var) *= 10; \ + _i = *(format) - '0'; \ + MPFR_ASSERTN (_i >= 0 && _i <= 9); \ + if ((var) > MPFR_INTMAX_MAX - _i) \ + (overflow) = 1; \ + else \ + (var) += _i; \ + } \ + } \ } while (0) /* arg_t contains all the types described by the 'type' field of the @@ -175,8 +190,8 @@ struct printf_spec unsigned int showsign:1; /* + flag */ unsigned int group:1; /* ' flag */ - int width; /* Width */ - int prec; /* Precision */ + mpfr_intmax_t width; /* Width */ + mpfr_intmax_t prec; /* Precision, or negative if omitted */ size_t size; /* Wanted size (0 iff snprintf with size=0) */ enum arg_t arg_type; /* Type of argument */ @@ -248,7 +263,9 @@ specinfo_is_valid (struct printf_spec spec) } } -static const char * +/* Note: additional flags should be added to the MPFR_PREC_ARG code + for gmp_asprintf (when supported). */ +MPFR_RETURNS_NONNULL static const char * parse_flags (const char *format, struct printf_spec *specinfo) { while (*format) @@ -287,7 +304,7 @@ parse_flags (const char *format, struct printf_spec *specinfo) return format; } -static const char * +MPFR_RETURNS_NONNULL static const char * parse_arg_type (const char *format, struct printf_spec *specinfo) { switch (*format) @@ -427,6 +444,8 @@ typedef wint_t mpfr_va_wint; #define CASE_LONG_LONG_ARG(specinfo, ap) #endif +/* Note: (specinfo).width may be incorrect in case of overflow, + but it is not used by CONSUME_VA_ARG. */ #define CONSUME_VA_ARG(specinfo, ap) \ do { \ switch ((specinfo).arg_type) \ @@ -494,11 +513,14 @@ typedef wint_t mpfr_va_wint; } \ } while (0) -/* process the format part which does not deal with mpfr types, - jump to external label 'error' if gmp_asprintf return -1. +/* Process the format part which does not deal with mpfr types, + Jump to external label 'error' if gmp_asprintf return -1. Note: start and end are pointers to the format string, so that size_t is the best type to express the difference. - */ + FIXME: If buf.size = 0 or size != 0, gmp_vsnprintf should be called + instead of gmp_vasprintf, outputting data directly to the buffer + when applicable. +*/ #define FLUSH(flag, start, end, ap, buf_ptr) \ do { \ const size_t n = (end) - (start); \ @@ -510,7 +532,7 @@ typedef wint_t mpfr_va_wint; int length; \ \ MPFR_TMP_MARK (marker); \ - fmt_copy = (char*) MPFR_TMP_ALLOC (n + 1); \ + fmt_copy = (char *) MPFR_TMP_ALLOC (n + 1); \ strncpy (fmt_copy, (start), n); \ fmt_copy[n] = '\0'; \ length = gmp_vasprintf (&s, fmt_copy, (ap)); \ @@ -554,7 +576,7 @@ buffer_init (struct string_buffer *b, size_t s) /* Increase the len field of the buffer. Return non-zero iff overflow. */ static int -buffer_incr_len (struct string_buffer *b, size_t len) +buffer_incr_len (struct string_buffer *b, mpfr_intmax_t len) { if (b->len == -1) return 1; @@ -570,6 +592,7 @@ buffer_incr_len (struct string_buffer *b, size_t len) if (MPFR_UNLIKELY (newlen < len || newlen > MPFR_INTMAX_MAX)) { + MPFR_LOG_MSG (("Overflow\n", 0)); b->len = -1; return 1; } @@ -582,7 +605,7 @@ buffer_incr_len (struct string_buffer *b, size_t len) } /* Increase buffer size by a number of character being the least multiple of - 4096 greater than LEN+1. */ + 4096 greater than len+1. */ static void buffer_widen (struct string_buffer *b, size_t len) { @@ -599,8 +622,7 @@ buffer_widen (struct string_buffer *b, size_t len) MPFR_ASSERTN (b->size < ((size_t) -1) - n); - b->start = - (char *) mpfr_reallocate_func (b->start, b->size, b->size + n); + b->start = (char *) mpfr_reallocate_func (b->start, b->size, b->size + n); b->size += n; b->curr = b->start + pos; @@ -608,7 +630,7 @@ buffer_widen (struct string_buffer *b, size_t len) MPFR_ASSERTD (*b->curr == '\0'); } -/* Concatenate the LEN first characters of the string S to the buffer B and +/* Concatenate the first len characters of the string s to the buffer b and expand it if needed. Return non-zero if overflow. */ static int buffer_cat (struct string_buffer *b, const char *s, size_t len) @@ -638,9 +660,9 @@ buffer_cat (struct string_buffer *b, const char *s, size_t len) return 0; } -/* Add N characters C to the end of buffer B. Return non-zero if overflow. */ +/* Add n characters c to the end of buffer b. Return non-zero if overflow. */ static int -buffer_pad (struct string_buffer *b, const char c, const size_t n) +buffer_pad (struct string_buffer *b, const char c, const mpfr_intmax_t n) { MPFR_ASSERTD (n > 0); @@ -650,7 +672,14 @@ buffer_pad (struct string_buffer *b, const char c, const size_t n) if (b->size != 0) { MPFR_ASSERTD (*b->curr == '\0'); - MPFR_ASSERTN (b->size < ((size_t) -1) - n); + + if (n > (size_t) -1 || b->size > ((size_t) -1) - n) + { + /* Reallocation will not be possible. Regard this as an overflow. */ + b->len = -1; + return 1; + } + if (MPFR_UNLIKELY (b->curr + n >= b->start + b->size)) buffer_widen (b, n); @@ -667,87 +696,104 @@ buffer_pad (struct string_buffer *b, const char c, const size_t n) return 0; } -/* Form a string by concatenating the first LEN characters of STR to TZ - zero(s), insert into one character C each 3 characters starting from end - to beginning and concatenate the result to the buffer B. */ +/* Form a string by concatenating the first len characters of str to tz + zero(s), insert into one character c each 3 characters starting from end + to beginning and concatenate the result to the buffer b. + Assume c is not null (\0). Return non-zero if overflow. */ static int buffer_sandwich (struct string_buffer *b, char *str, size_t len, const size_t tz, const char c) { - MPFR_ASSERTD (len <= strlen (str)); + const size_t step = 3; + size_t size, q, r, fullsize, i; + char *oldcurr; - if (c == '\0') - return - buffer_cat (b, str, len) || - buffer_pad (b, '0', tz); + MPFR_ASSERTD (b->size != 0); + MPFR_ASSERTD (tz == 0 || tz == 1); + + if (len <= ULONG_MAX) + MPFR_LOG_MSG (("len=%lu\n", (unsigned long) len)); + if (tz <= ULONG_MAX) + MPFR_LOG_MSG (("tz=%lu\n", (unsigned long) tz)); + + MPFR_ASSERTD (len <= strlen (str)); + MPFR_ASSERTD (c != '\0'); + + /* check that len + tz does not overflow */ + if (len > (size_t) -1 - tz) + return 1; + + size = len + tz; /* number of digits */ + MPFR_ASSERTD (size > 0); + + q = (size - 1) / step; /* number of separators C */ + r = ((size - 1) % step) + 1; /* number of digits in the leftmost block */ + MPFR_ASSERTD (r >= 1 && r <= step); + + /* check that size + q does not overflow */ + if (size > (size_t) -1 - q) + return 1; + + fullsize = size + q; /* number of digits and separators */ + + if (buffer_incr_len (b, fullsize)) + return 1; + + MPFR_ASSERTD (*b->curr == '\0'); + MPFR_ASSERTN (b->size < ((size_t) -1) - fullsize); + if (MPFR_UNLIKELY (b->curr + fullsize >= b->start + b->size)) + buffer_widen (b, fullsize); + + MPFR_DBGRES (oldcurr = b->curr); + + /* first r significant digits (leftmost block) */ + if (r <= len) + { + memcpy (b->curr, str, r); + str += r; + len -= r; + } else { - const size_t step = 3; - const size_t size = len + tz; - const size_t r = size % step == 0 ? step : size % step; - const size_t q = size % step == 0 ? size / step - 1 : size / step; - const size_t fullsize = size + q; - size_t i; - - MPFR_ASSERTD (size > 0); - - if (buffer_incr_len (b, fullsize)) - return 1; - - if (b->size != 0) - { - char *oldcurr; - - MPFR_ASSERTD (*b->curr == '\0'); - MPFR_ASSERTN (b->size < ((size_t) -1) - fullsize); - if (MPFR_UNLIKELY (b->curr + fullsize >= b->start + b->size)) - buffer_widen (b, fullsize); - - MPFR_DBGRES (oldcurr = b->curr); - - /* first R significant digits */ - memcpy (b->curr, str, r); - b->curr += r; - str += r; - len -= r; - - /* blocks of thousands. Warning: STR might end in the middle of a block */ - for (i = 0; i < q; ++i) - { - *b->curr++ = c; - if (MPFR_LIKELY (len > 0)) - { - if (MPFR_LIKELY (len >= step)) - /* step significant digits */ - { - memcpy (b->curr, str, step); - len -= step; - } - else - /* last digits in STR, fill up thousand block with zeros */ - { - memcpy (b->curr, str, len); - memset (b->curr + len, '0', step - len); - len = 0; - } - } - else - /* trailing zeros */ - memset (b->curr, '0', step); - - b->curr += step; - str += step; - } - - MPFR_ASSERTD (b->curr - oldcurr == fullsize); - - *b->curr = '\0'; - - MPFR_ASSERTD (b->curr < b->start + b->size); - } - - return 0; + MPFR_ASSERTD (r > len); + MPFR_ASSERTD (len < step); /* as a consequence */ + MPFR_ASSERTD (size <= step); /* as a consequence */ + MPFR_ASSERTD (q == 0); /* as a consequence */ + MPFR_ASSERTD (r == size); /* as a consequence */ + MPFR_ASSERTD (tz == 1); /* as a consequence */ + memcpy (b->curr, str, len); + *(b->curr + len) = '0'; /* trailing zero */ + /* We do not need to set len to 0 since it will not be read again + (q = 0, so that the loop below will have 0 iterations). */ } + b->curr += r; + + for (i = 0; i < q; ++i) + { + *b->curr++ = c; + if (MPFR_LIKELY (len >= step)) + { + memcpy (b->curr, str, step); + len -= step; + str += step; + } + else + { + /* last digits */ + MPFR_ASSERTD (i == q - 1 && step - len == 1); + memcpy (b->curr, str, len); + *(b->curr + len) = '0'; /* trailing zero */ + } + b->curr += step; + } + + MPFR_ASSERTD (b->curr - oldcurr == fullsize); + + *b->curr = '\0'; + + MPFR_ASSERTD (b->curr < b->start + b->size); + + return 0; } /* Helper struct and functions for temporary strings management */ @@ -790,7 +836,7 @@ register_string (struct string_list *sl, char *new_string) while (sl->next) sl = sl->next; - sl->next = (struct string_list*) + sl->next = (struct string_list *) mpfr_allocate_func (sizeof (struct string_list)); sl = sl->next; @@ -811,7 +857,7 @@ enum pad_t struct number_parts { enum pad_t pad_type; /* Padding type */ - size_t pad_size; /* Number of padding characters */ + mpfr_intmax_t pad_size; /* Number of padding characters */ char sign; /* Sign character */ @@ -822,17 +868,17 @@ struct number_parts char *ip_ptr; /* Pointer to integral part characters*/ size_t ip_size; /* Number of digits in *ip_ptr */ - int ip_trailing_zeros; /* Number of additional null digits in integral - part */ + int ip_trailing_digits; /* Number of additional digits in integral part + (if spec.size != 0, this can only be a zero) */ char point; /* Decimal point character */ - int fp_leading_zeros; /* Number of additional leading zeros in fractional - part */ + mpfr_intmax_t fp_leading_zeros; /* Number of additional leading zeros in + fractional part */ char *fp_ptr; /* Pointer to fractional part characters */ size_t fp_size; /* Number of digits in *fp_ptr */ - int fp_trailing_zeros; /* Number of additional trailing zeros in fractional - part */ + mpfr_intmax_t fp_trailing_zeros; /* Number of additional trailing zeros in + fractional part */ char *exp_ptr; /* Pointer to exponent part */ size_t exp_size; /* Number of characters in *exp_ptr */ @@ -916,23 +962,24 @@ floor_log10 (mpfr_srcptr x) #define NDIGITS 8 -static char* -mpfr_get_str_aux (mpfr_exp_t *exp, int base, size_t n, const mpfr_t op, - const struct printf_spec spec) +MPFR_RETURNS_NONNULL static char * +mpfr_get_str_wrapper (mpfr_exp_t *exp, int base, size_t n, const mpfr_t op, + const struct printf_spec spec) { size_t ndigits; char *str, *s, nine; int neg; + /* Possibles bases for the *printf functions. */ + MPFR_ASSERTD (base == 2 || base == 10 || base == 16); + if (spec.size != 0) return mpfr_get_str (NULL, exp, base, n, op, spec.rnd_mode); /* Special case size = 0, i.e., xxx_snprintf with size = 0: we only want to compute the number of printed characters. Try to deduce it from a small number of significant digits. */ - nine = (base <= 10) ? '0' + base - 1 - : (base <= 36) ? 'a' + base - 11 - : 'a' + base - 37; + nine = base == 2 ? '1' : base == 10 ? '9' : 'f'; for (ndigits = NDIGITS; ; ndigits *= 2) { mpfr_rnd_t rnd = MPFR_RNDZ; @@ -961,9 +1008,9 @@ mpfr_get_str_aux (mpfr_exp_t *exp, int base, size_t n, const mpfr_t op, } /* Determine the different parts of the string representation of the regular - number P when SPEC.SPEC is 'a', 'A', or 'b'. + number P when spec.spec is 'a', 'A', or 'b'. - return -1 if some field > INT_MAX */ + Return -1 in case of overflow on the sizes. */ static int regular_ab (struct number_parts *np, mpfr_srcptr p, const struct printf_spec spec) @@ -1004,10 +1051,17 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, - if no given precision, let mpfr_get_str determine it; - if a non-zero precision is specified, then one digit before decimal point plus SPEC.PREC after it (which will give nsd > 1 below). */ - MPFR_ASSERTD (np->ip_size == 1); /* thus no integer overflow below */ - nsd = spec.prec < 0 ? 0 : (size_t) spec.prec + np->ip_size; - MPFR_ASSERTD (nsd != 1); - str = mpfr_get_str_aux (&exp, base, nsd, p, spec); + MPFR_ASSERTD (np->ip_size == 1); /* thus the + 1 below */ + if (spec.prec < 0) + nsd = 0; + else + { + if (MPFR_UNLIKELY (spec.prec > (size_t) -2)) /* overflow */ + return -1; + nsd = (size_t) spec.prec + 1; + MPFR_ASSERTD (nsd != 1); + } + str = mpfr_get_str_wrapper (&exp, base, nsd, p, spec); register_string (np->sl, str); np->ip_ptr = MPFR_IS_NEG (p) ? ++str : str; /* skip sign if any */ @@ -1033,7 +1087,7 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, } else if (next_base_power_p (p, base, spec.rnd_mode)) { - str = (char *)mpfr_allocate_func (2); + str = (char *) mpfr_allocate_func (2); str[0] = '1'; str[1] = '\0'; np->ip_ptr = register_string (np->sl, str); @@ -1042,7 +1096,7 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, } else if (base == 2) { - str = (char *)mpfr_allocate_func (2); + str = (char *) mpfr_allocate_func (2); str[0] = '1'; str[1] = '\0'; np->ip_ptr = register_string (np->sl, str); @@ -1056,7 +1110,7 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, int rnd_bit = GMP_NUMB_BITS - 5; /* pick up the 4 first bits */ - digit = msl >> (rnd_bit+1); + digit = msl >> (rnd_bit + 1); if (spec.rnd_mode == MPFR_RNDA || (spec.rnd_mode == MPFR_RNDU && MPFR_IS_POS (p)) || (spec.rnd_mode == MPFR_RNDD && MPFR_IS_NEG (p)) @@ -1065,7 +1119,7 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, digit++; MPFR_ASSERTD (0 <= digit && digit <= 15); - str = (char *)mpfr_allocate_func (1 + np->ip_size); + str = (char *) mpfr_allocate_func (1 + np->ip_size); str[0] = num_to_text [digit]; str[1] = '\0'; np->ip_ptr = register_string (np->sl, str); @@ -1125,18 +1179,17 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, } } - if (str_len > INT_MAX) - /* too many digits in fractional part */ - return -1; - if (str_len != 0) /* there are some non-zero digits in fractional part */ { np->fp_ptr = str; np->fp_size = str_len; - MPFR_ASSERTD (str_len > 0 && str_len <= INT_MAX); - if ((int) str_len < spec.prec) - np->fp_trailing_zeros = spec.prec - str_len; + /* Warning! str_len has type size_t, which is unsigned. */ + if (spec.prec > 0 && str_len < spec.prec) + { + np->fp_trailing_zeros = spec.prec - str_len; + MPFR_ASSERTD (np->fp_trailing_zeros >= 0); + } } } @@ -1169,7 +1222,7 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, exp_fmt[1] = '\0'; strcat (exp_fmt, "%+.1" MPFR_EXP_FSPEC "d"); - if (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0) + if (MPFR_UNLIKELY (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0)) return -1; } @@ -1178,20 +1231,19 @@ regular_ab (struct number_parts *np, mpfr_srcptr p, /* Determine the different parts of the string representation of the regular number P when spec.spec is 'e', 'E', 'g', or 'G'. - dec_info contains the previously computed exponent and string or is NULL. + dec_info contains the previously computed exponent and string or is + a null pointer. - return -1 if some field > INT_MAX */ + Return -1 in case of overflow on the sizes. */ static int regular_eg (struct number_parts *np, mpfr_srcptr p, - const struct printf_spec spec, struct decimal_info *dec_info) + const struct printf_spec spec, struct decimal_info *dec_info, + int keep_trailing_zeros) { char *str; mpfr_exp_t exp; const int uppercase = spec.spec == 'E' || spec.spec == 'G'; - const int spec_g = spec.spec == 'g' || spec.spec == 'G'; - const int keep_trailing_zeros = (spec_g && spec.alt) - || (!spec_g && (spec.prec > 0)); /* sign */ if (MPFR_IS_NEG (p)) @@ -1211,9 +1263,16 @@ regular_eg (struct number_parts *np, mpfr_srcptr p, plus SPEC.PREC after it. We use the fact here that mpfr_get_str allows us to ask for only one significant digit when the base is not a power of 2. */ - MPFR_ASSERTD (np->ip_size == 1); /* thus no integer overflow below */ - nsd = spec.prec < 0 ? 0 : (size_t) spec.prec + np->ip_size; - str = mpfr_get_str_aux (&exp, 10, nsd, p, spec); + MPFR_ASSERTD (np->ip_size == 1); /* thus the + 1 below */ + if (spec.prec < 0) + nsd = 0; + else + { + if (MPFR_UNLIKELY (spec.prec > (size_t) -2)) /* overflow */ + return -1; + nsd = (size_t) spec.prec + 1; + } + str = mpfr_get_str_wrapper (&exp, 10, nsd, p, spec); register_string (np->sl, str); } else @@ -1244,20 +1303,18 @@ regular_eg (struct number_parts *np, mpfr_srcptr p, } } - if (str_len > INT_MAX) - /* too many digits in fractional part */ - return -1; - if (str_len != 0) /* there are some non-zero digits in fractional part */ { np->fp_ptr = str; np->fp_size = str_len; - MPFR_ASSERTD (str_len > 0 && str_len <= INT_MAX); - if ((!spec_g || spec.alt) && spec.prec > 0 - && (int) str_len < spec.prec) - /* add missing trailing zeros */ - np->fp_trailing_zeros = spec.prec - str_len; + /* Warning! str_len has type size_t, which is unsigned. */ + if (keep_trailing_zeros && spec.prec > 0 && str_len < spec.prec) + { + /* add missing trailing zeros */ + np->fp_trailing_zeros = spec.prec - str_len; + MPFR_ASSERTD (np->fp_trailing_zeros >= 0); + } } } @@ -1298,7 +1355,7 @@ regular_eg (struct number_parts *np, mpfr_srcptr p, exp_fmt[1] = '\0'; strcat (exp_fmt, "%+.2" MPFR_EXP_FSPEC "d"); - if (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0) + if (MPFR_UNLIKELY (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0)) return -1; } @@ -1307,17 +1364,17 @@ regular_eg (struct number_parts *np, mpfr_srcptr p, /* Determine the different parts of the string representation of the regular number P when spec.spec is 'f', 'F', 'g', or 'G'. - DEC_INFO contains the previously computed exponent and string or is NULL. + dec_info contains the previously computed exponent and string or is + a null pointer. - return -1 if some field of number_parts is greater than INT_MAX */ + Return -1 in case of overflow on the sizes. */ static int regular_fg (struct number_parts *np, mpfr_srcptr p, - const struct printf_spec spec, struct decimal_info *dec_info) + const struct printf_spec spec, struct decimal_info *dec_info, + int keep_trailing_zeros) { mpfr_exp_t exp; char * str; - const int spec_g = (spec.spec == 'g' || spec.spec == 'G'); - const int keep_trailing_zeros = !spec_g || spec.alt; /* WARNING: an empty precision field is forbidden (it means precision = 6 and it should have been changed to 6 before the function call) */ @@ -1364,10 +1421,15 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, /* only the last digit may be non zero */ { int round_away; + + /* Due to mpfr_set_si below... */ + if (MPFR_UNLIKELY (spec.prec > LONG_MAX)) /* overflow */ + return -1; + switch (spec.rnd_mode) { case MPFR_RNDA: - case MPFR_RNDF: /* round_away = 1 needed for spec_g */ + case MPFR_RNDF: /* round_away = 1 needed for %Rg */ round_away = 1; break; case MPFR_RNDZ: @@ -1414,8 +1476,7 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, np->fp_leading_zeros = spec.prec - 1; np->fp_size = 1; - str = - (char *) mpfr_allocate_func (1 + np->fp_size); + str = (char *) mpfr_allocate_func (1 + np->fp_size); str[0] = '1'; str[1] = '\0'; np->fp_ptr = register_string (np->sl, str); @@ -1423,7 +1484,7 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, else /* only zeros in fractional part */ { - MPFR_ASSERTD (!spec_g); + MPFR_ASSERTD (spec.spec == 'f' || spec.spec == 'F'); np->fp_leading_zeros = spec.prec; } } @@ -1439,19 +1500,17 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, { size_t nsd; - /* Consequences of earlier assertions (in r11307). - They guarantee that the integers are representable - (i.e., no integer overflow), assuming size_t >= int - as usual. */ MPFR_ASSERTD (exp <= -1); MPFR_ASSERTD (spec.prec + (exp + 1) >= 0); + if (MPFR_UNLIKELY (spec.prec + (exp + 1) > (size_t) -1)) + return -1; nsd = spec.prec + (exp + 1); /* WARNING: nsd may equal 1, but here we use the fact that mpfr_get_str can return one digit with base ten (undocumented feature, see comments in get_str.c) */ - str = mpfr_get_str_aux (&exp, 10, nsd, p, spec); + str = mpfr_get_str_wrapper (&exp, 10, nsd, p, spec); register_string (np->sl, str); } else @@ -1467,7 +1526,7 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, { MPFR_ASSERTD (str[0] == '1'); np->ip_ptr[0] = '1'; - if (!spec_g || spec.alt) + if (keep_trailing_zeros) np->fp_leading_zeros = spec.prec; } else @@ -1489,19 +1548,23 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, } } - if (str_len > INT_MAX) - /* too many digits in fractional part */ - return -1; - MPFR_ASSERTD (str_len > 0); np->fp_size = str_len; - if ((!spec_g || spec.alt) + /* The np->fp_size <= MPFR_INTMAX_MAX test and the + cast to mpfr_uintmax_t below allow one to avoid + integer overflow. */ + if (keep_trailing_zeros && spec.prec > 0 - && (np->fp_leading_zeros + np->fp_size < spec.prec)) - /* add missing trailing zeros */ - np->fp_trailing_zeros = spec.prec - np->fp_leading_zeros - - np->fp_size; + && np->fp_size <= MPFR_INTMAX_MAX + && ((mpfr_uintmax_t) + np->fp_leading_zeros + np->fp_size) < spec.prec) + { + /* add missing trailing zeros */ + np->fp_trailing_zeros = spec.prec + - np->fp_leading_zeros - np->fp_size; + MPFR_ASSERTD (np->fp_trailing_zeros >= 0); + } } } } @@ -1518,17 +1581,21 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, /* Determine the position of the most significant decimal digit. */ exp = floor_log10 (p); MPFR_ASSERTD (exp >= 0); - if (exp > INT_MAX) - /* P is too large to print all its integral part digits */ - return -1; if (dec_info == NULL) - { /* this case occurs with mpfr_printf ("%.0RUf", x) with x=9.5 */ - str = mpfr_get_str_aux (&exp, 10, spec.prec+exp+1, p, spec); + { + /* %f case */ + mpfr_uintmax_t n; + + n = (mpfr_uintmax_t) spec.prec + (exp + 1); + if (MPFR_UNLIKELY (n > (size_t) -1)) + return -1; + str = mpfr_get_str_wrapper (&exp, 10, n, p, spec); register_string (np->sl, str); } else { + /* %g case */ exp = dec_info->exp; str = dec_info->str; } @@ -1537,10 +1604,13 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, /* integral part */ if (exp > str_len) - /* mpfr_get_str gives no trailing zero when p is rounded up to the next - power of 10 (p integer, so no fractional part) */ { - np->ip_trailing_zeros = exp - str_len; + /* When spec.size == 0, mpfr_get_str may be called in a reduced + precision, so that some trailing digits may have been ignored. + When spec.size != 0, this case is also possible in the case + where p is rounded up to the next power of 10: a zero must be + added since the exponent has been increased by 1. */ + np->ip_trailing_digits = exp - str_len; np->ip_size = str_len; } else @@ -1568,20 +1638,19 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, if (str_len > 0) /* some nonzero digits in fractional part */ { - if (str_len > INT_MAX) - /* too many digits in fractional part */ - return -1; - np->point = MPFR_DECIMAL_POINT; np->fp_ptr = str; np->fp_size = str_len; } + /* Warning! str_len has type size_t, which is unsigned. */ + MPFR_ASSERTD (spec.prec >= 0); /* let's recall this */ if (keep_trailing_zeros && str_len < spec.prec) /* add missing trailing zeros */ { np->point = MPFR_DECIMAL_POINT; np->fp_trailing_zeros = spec.prec - np->fp_size; + MPFR_ASSERTD (np->fp_trailing_zeros >= 0); } if (spec.alt) @@ -1596,15 +1665,16 @@ regular_fg (struct number_parts *np, mpfr_srcptr p, representation of the number p according to the given specification. partition_number initializes the given structure np, so all previous information in that variable is lost. - return the total number of characters to be written. - return -1 if an error occurred, in that case np's fields are in an undefined - state but all string buffers have been freed. */ + Return the total number of characters to be written. + Return -1 if an error occurred, in that case np's fields are in an + undefined state but all string buffers have been freed. */ static mpfr_intmax_t partition_number (struct number_parts *np, mpfr_srcptr p, struct printf_spec spec) { char *str; - unsigned int total; /* can hold the sum of two non-negative int's + 1 */ + mpfr_uintmax_t total; /* can hold the sum of two non-negative + signed integers + 1 */ int uppercase; /* WARNING: left justification means right space padding */ @@ -1616,7 +1686,7 @@ partition_number (struct number_parts *np, mpfr_srcptr p, np->thousands_sep = '\0'; np->ip_ptr = NULL; np->ip_size = 0; - np->ip_trailing_zeros = 0; + np->ip_trailing_digits = 0; np->point = '\0'; np->fp_leading_zeros = 0; np->fp_ptr = NULL; @@ -1690,6 +1760,15 @@ partition_number (struct number_parts *np, mpfr_srcptr p, str[1] = '\0'; np->ip_ptr = register_string (np->sl, str); + if (spec.prec < 0) /* empty precision field */ + { + if (spec.spec == 'e' || spec.spec == 'E') + spec.prec = mpfr_get_str_ndigits (10, MPFR_GET_PREC (p)) - 1; + else if (spec.spec == 'f' || spec.spec == 'F' || + spec.spec == 'g' || spec.spec == 'G') + spec.prec = DEFAULT_DECIMAL_PREC; + } + if (spec.prec > 0 && ((spec.spec != 'g' && spec.spec != 'G') || spec.alt)) /* fractional part */ @@ -1697,6 +1776,7 @@ partition_number (struct number_parts *np, mpfr_srcptr p, np->point = MPFR_DECIMAL_POINT; np->fp_trailing_zeros = (spec.spec == 'g' || spec.spec == 'G') ? spec.prec - 1 : spec.prec; + MPFR_ASSERTD (np->fp_trailing_zeros >= 0); } else if (spec.alt) np->point = MPFR_DECIMAL_POINT; @@ -1744,13 +1824,13 @@ partition_number (struct number_parts *np, mpfr_srcptr p, else if (spec.spec == 'f' || spec.spec == 'F') { if (spec.prec < 0) - spec.prec = 6; - if (regular_fg (np, p, spec, NULL) == -1) + spec.prec = DEFAULT_DECIMAL_PREC; + if (regular_fg (np, p, spec, NULL, 1) == -1) goto error; } else if (spec.spec == 'e' || spec.spec == 'E') { - if (regular_eg (np, p, spec, NULL) == -1) + if (regular_eg (np, p, spec, NULL, 1) == -1) goto error; } else @@ -1767,9 +1847,11 @@ partition_number (struct number_parts *np, mpfr_srcptr p, mpfr_exp_t x, e, k; struct decimal_info dec_info; - threshold = (spec.prec < 0) ? 6 : (spec.prec == 0) ? 1 : spec.prec; + threshold = spec.prec < 0 ? DEFAULT_DECIMAL_PREC : + spec.prec == 0 ? 1 : spec.prec; + MPFR_ASSERTD (threshold >= 1); - /* Here we cannot call mpfr_get_str_aux since we need the full + /* Here we cannot call mpfr_get_str_wrapper since we need the full significand in dec_info.str. Moreover, threshold may be huge while one can know that the number of digits that are not trailing zeros remains limited; @@ -1806,14 +1888,14 @@ partition_number (struct number_parts *np, mpfr_srcptr p, /* the conversion is with style 'f' */ spec.prec = threshold - x - 1; - if (regular_fg (np, p, spec, &dec_info) == -1) + if (regular_fg (np, p, spec, &dec_info, spec.alt) == -1) goto error; } else { spec.prec = threshold - 1; - if (regular_eg (np, p, spec, &dec_info) == -1) + if (regular_eg (np, p, spec, &dec_info, spec.alt) == -1) goto error; } } @@ -1835,12 +1917,12 @@ partition_number (struct number_parts *np, mpfr_srcptr p, total = np->sign ? 1 : 0; INCR_TOTAL (np->prefix_size); INCR_TOTAL (np->ip_size); - INCR_TOTAL (np->ip_trailing_zeros); - MPFR_ASSERTD (np->ip_size + np->ip_trailing_zeros >= 1); + INCR_TOTAL (np->ip_trailing_digits); + MPFR_ASSERTD (np->ip_size + np->ip_trailing_digits >= 1); if (np->thousands_sep) /* ' flag, style f and the thousands separator in current locale is not reduced to the null character */ - INCR_TOTAL ((np->ip_size + np->ip_trailing_zeros - 1) / 3); + INCR_TOTAL ((np->ip_size + np->ip_trailing_digits - 1) / 3); if (np->point) ++total; INCR_TOTAL (np->fp_leading_zeros); @@ -1852,9 +1934,7 @@ partition_number (struct number_parts *np, mpfr_srcptr p, /* pad with spaces or zeros depending on np->pad_type */ { np->pad_size = spec.width - total; - total += np->pad_size; /* here total == spec.width, - so 0 < total <= INT_MAX */ - MPFR_ASSERTD (total == spec.width); + total = spec.width; } MPFR_ASSERTD (total > 0 && total <= MPFR_INTMAX_MAX); @@ -1871,8 +1951,8 @@ partition_number (struct number_parts *np, mpfr_srcptr p, /* sprnt_fp prints a mpfr_t according to spec.spec specification. - return the size of the string (not counting the terminating '\0') - return -1 if the built string is too long (i.e. has more than + Return the size of the string (not counting the terminating '\0'). + Return -1 if the built string is too long (i.e. has more than INT_MAX or MPFR_INTMAX_MAX characters). If spec.size is 0, we only want the size of the string. @@ -1885,7 +1965,7 @@ sprnt_fp (struct string_buffer *buf, mpfr_srcptr p, struct number_parts np; length = partition_number (&np, p, spec); - if (length < 0) + if (MPFR_UNLIKELY (length < 0)) { buf->len = -1; return -1; @@ -1920,15 +2000,22 @@ sprnt_fp (struct string_buffer *buf, mpfr_srcptr p, /* integral part (may also be "nan" or "inf") */ MPFR_ASSERTN (np.ip_ptr != NULL); /* never empty */ if (MPFR_UNLIKELY (np.thousands_sep)) - buffer_sandwich (buf, np.ip_ptr, np.ip_size, np.ip_trailing_zeros, - np.thousands_sep); + { + if (buffer_sandwich (buf, np.ip_ptr, np.ip_size, np.ip_trailing_digits, + np.thousands_sep)) + { + buf->len = -1; + goto clear_and_exit; + } + } else { buffer_cat (buf, np.ip_ptr, np.ip_size); - /* trailing zeros in integral part */ - if (np.ip_trailing_zeros != 0) - buffer_pad (buf, '0', np.ip_trailing_zeros); + /* possible trailing zero in integral part (spec.size != 0) */ + MPFR_ASSERTD (np.ip_trailing_digits <= 1); + if (np.ip_trailing_digits != 0) + buffer_pad (buf, '0', 1); } /* decimal point */ @@ -1978,7 +2065,7 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, struct string_buffer buf; int nbchar; - /* informations on the conversion specification filled by the parser */ + /* information on the conversion specification filled by the parser */ struct printf_spec spec; /* flag raised when previous part of fmt need to be processed by gmp_vsnprintf */ @@ -1991,12 +2078,18 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, MPFR_SAVE_EXPO_DECL (expo); MPFR_SAVE_EXPO_MARK (expo); + /* FIXME: Once buf.len >= size, switch to size = 0 for efficiency and + avoid potential DoS? i.e. we no longer need to generate the strings + (potentially huge), just compute the lengths. */ + buffer_init (&buf, ptr != NULL || size != 0 ? 4096 : 0); xgmp_fmt_flag = 0; va_copy (ap2, ap); start = fmt; while (*fmt != '\0') { + int overflow = 0; + /* Look for the next format specification */ while (*fmt != '\0' && *fmt != '%') ++fmt; @@ -2020,24 +2113,34 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, specinfo_init (&spec); fmt = parse_flags (fmt, &spec); - READ_INT (ap, fmt, spec, width, width_analysis); - width_analysis: - if (spec.width < 0) + READ_INT (ap, fmt, spec.width); + if (spec.width < 0) /* integer read via '*', no overflow */ { spec.left = 1; - spec.width = -spec.width; - MPFR_ASSERTN (spec.width < INT_MAX); + /* Since the type of the integer is int, spec.width >= INT_MIN, + so that an overflow is possible here only if mpfr_intmax_t + has the same size of int. The INT_MIN < - MPFR_INTMAX_MAX + test allows the compiler to optimize when it is false. */ + if (MPFR_UNLIKELY (INT_MIN < - MPFR_INTMAX_MAX && + spec.width < - MPFR_INTMAX_MAX)) + overflow = 1; + else + spec.width = - spec.width; } + /* Note: We will make sure that spec.width is not used in case of + overflow. */ + MPFR_ASSERTD (overflow || spec.width >= 0); + if (*fmt == '.') { const char *f = ++fmt; - READ_INT (ap, fmt, spec, prec, prec_analysis); - prec_analysis: - if (f == fmt) + READ_INT (ap, fmt, spec.prec); + if (f == fmt || spec.prec < 0) spec.prec = -1; } else spec.prec = -1; + MPFR_ASSERTD (spec.prec >= -1); fmt = parse_arg_type (fmt, &spec); if (spec.arg_type == UNSUPPORTED) @@ -2075,6 +2178,7 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, break; case 'N': ++fmt; + MPFR_FALLTHROUGH; default: spec.rnd_mode = MPFR_RNDN; } @@ -2182,10 +2286,21 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, /* output mpfr_prec_t variable */ { char *s; - char format[MPFR_PREC_FORMAT_SIZE + 6]; /* see examples below */ + char format[MPFR_PREC_FORMAT_SIZE + 12]; /* e.g. "%0#+ -'*.*ld\0" */ size_t length; mpfr_prec_t prec; + /* FIXME: With buf.size = 0 and a huge width or precision, this + can uselessly take much memory. And even with buf.size != 0, + this would take more memory than necessary and need a large + buffer_cat. A solution: compute a bound on the maximum + number of significant digits, and handle the additional + characters separately. Moreover, if buf.size = 0 or size != 0, + gmp_snprintf should be called instead of gmp_asprintf, + outputting data directly to the buffer when applicable. + See also: https://sourceware.org/bugzilla/show_bug.cgi?id=23432 + Add testcases. */ + prec = va_arg (ap, mpfr_prec_t); FLUSH (xgmp_fmt_flag, start, end, ap2, &buf); @@ -2193,16 +2308,44 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, va_copy (ap2, ap); start = fmt; + /* The restriction to INT_MAX is a limitation due to the fact + that *.* is used below. If the width or precision field is + larger than INT_MAX, then there is a real overflow on the + return value due to the padding characters, thus the error + is correct. The only minor drawback is that some variables + corresponding to the 'n' conversion specifier with a type + larger than int may not be set. This is not a bug, as there + are no strong guarantees for such variables in case of error. + FIXME: If size = 0 and max(spec.width,spec.prec) is large + enough, there is no need to call gmp_asprintf since we are + just interested in the length, which should be this maximum; + in particular, this should avoid the overflow issue. */ + if (overflow || spec.width > INT_MAX || spec.prec > INT_MAX) + { + buf.len = -1; + goto error; + } + + /* Recalled from above. */ + MPFR_ASSERTD (spec.width >= 0); + MPFR_ASSERTD (spec.prec >= -1); + /* construct format string, like "%*.*hd" "%*.*d" or "%*.*ld" */ - format[0] = '%'; - format[1] = '*'; - format[2] = '.'; - format[3] = '*'; - format[4] = '\0'; - strcat (format, MPFR_PREC_FORMAT_TYPE); - format[4 + MPFR_PREC_FORMAT_SIZE] = spec.spec; - format[5 + MPFR_PREC_FORMAT_SIZE] = '\0'; - length = gmp_asprintf (&s, format, spec.width, spec.prec, prec); + sprintf (format, "%%%s%s%s%s%s%s*.*" MPFR_PREC_FORMAT_TYPE "%c", + spec.pad == '0' ? "0" : "", + spec.alt ? "#" : "", + spec.showsign ? "+" : "", + spec.space ? " " : "", + spec.left ? "-" : "", + spec.group ? "'" : "", + spec.spec); + MPFR_LOG_MSG (("MPFR_PREC_ARG: format for gmp_asprintf: \"%s\"\n", + format)); + MPFR_LOG_MSG (("MPFR_PREC_ARG: width = %d, prec = %d, value = %" + MPFR_PREC_FORMAT_TYPE "d\n", + (int) spec.width, (int) spec.prec, prec)); + length = gmp_asprintf (&s, format, + (int) spec.width, (int) spec.prec, prec); MPFR_ASSERTN (length >= 0); /* guaranteed by GMP 6 */ buffer_cat (&buf, s, length); mpfr_free_str (s); @@ -2217,9 +2360,9 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, && spec.spec != 'e' && spec.spec != 'E' && spec.spec != 'f' && spec.spec != 'F' && spec.spec != 'g' && spec.spec != 'G') - /* the format specifier is invalid; skip the invalid format - specifier so as to print it as a literal string. What may be - printed after this string is undefined. */ + /* The format specifier is invalid; skip the invalid format + specifier so as to print it as a literal string. What may + be printed after this string is undefined. */ continue; p = va_arg (ap, mpfr_srcptr); @@ -2229,6 +2372,12 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, va_copy (ap2, ap); start = fmt; + if (overflow) + { + buf.len = -1; + goto error; + } + if (ptr == NULL) spec.size = size; sprnt_fp (&buf, p, spec); @@ -2246,44 +2395,42 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, va_end (ap2); - if (buf.len > INT_MAX) /* overflow */ - buf.len = -1; + if (buf.len == -1 || buf.len > INT_MAX) /* overflow */ + goto overflow; - if (buf.len != -1) + nbchar = buf.len; + MPFR_ASSERTD (nbchar >= 0); + + if (ptr != NULL) /* implement mpfr_vasprintf */ { - nbchar = buf.len; - MPFR_ASSERTD (nbchar >= 0); - - if (ptr != NULL) /* implement mpfr_vasprintf */ + MPFR_ASSERTD (nbchar == strlen (buf.start)); + *ptr = (char *) mpfr_reallocate_func (buf.start, buf.size, nbchar + 1); + } + else if (size != 0) /* implement mpfr_vsnprintf */ + { + if (nbchar < size) { - MPFR_ASSERTD (nbchar == strlen (buf.start)); - *ptr = (char *) - mpfr_reallocate_func (buf.start, buf.size, nbchar + 1); + strncpy (Buf, buf.start, nbchar); + Buf[nbchar] = '\0'; } - else if (size > 0) /* implement mpfr_vsnprintf */ + else { - if (nbchar < size) - { - strncpy (Buf, buf.start, nbchar); - Buf[nbchar] = '\0'; - } - else - { - strncpy (Buf, buf.start, size - 1); - Buf[size-1] = '\0'; - } - mpfr_free_func (buf.start, buf.size); + strncpy (Buf, buf.start, size - 1); + Buf[size-1] = '\0'; } - - MPFR_SAVE_EXPO_FREE (expo); - return nbchar; /* return the number of characters that would have - been written had 'size' been sufficiently large, - not counting the terminating null character */ + mpfr_free_func (buf.start, buf.size); } + MPFR_SAVE_EXPO_FREE (expo); + return nbchar; /* return the number of characters that would have + been written had 'size' been sufficiently large, + not counting the terminating null character */ + error: + va_end (ap2); if (buf.len == -1) /* overflow */ { + overflow: MPFR_LOG_MSG (("Overflow\n", 0)); MPFR_SAVE_EXPO_UPDATE_FLAGS (expo, MPFR_FLAGS_ERANGE); #ifdef EOVERFLOW @@ -2293,8 +2440,10 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, } MPFR_SAVE_EXPO_FREE (expo); - *ptr = NULL; - mpfr_free_func (buf.start, buf.size); + if (ptr != NULL) /* implement mpfr_vasprintf */ + *ptr = NULL; + if (ptr != NULL || size != 0) + mpfr_free_func (buf.start, buf.size); return -1; } diff --git a/external/lgpl3/mpfr/dist/src/x86/core2/mparam.h b/external/lgpl3/mpfr/dist/src/x86/core2/mparam.h deleted file mode 100644 index cb5fa3ddc83b..000000000000 --- a/external/lgpl3/mpfr/dist/src/x86/core2/mparam.h +++ /dev/null @@ -1,234 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2011-07-31, gcc 4.3.2 */ -/* gcc14.fsffrance.org (Intel(R) Xeon(R) CPU X5450 @ 3.00GHz) with gmp 5.0.2 - configured with ABI=32 */ - - -#define MPFR_MULHIGH_TAB \ - -1,0,-1,-1,-1,-1,-1,-1,-1,0,-1,-1,0,10,10,0, \ - 11,11,0,13,13,0,0,17,17,16,19,19,19,18,18,22, \ - 20,18,19,26,26,28,23,24,28,29,26,28,29,28,30,32, \ - 29,30,38,30,34,32,33,37,34,36,37,38,38,38,38,38, \ - 38,44,36,52,44,48,52,56,51,52,56,56,52,52,56,58, \ - 52,60,60,56,60,55,52,68,60,68,68,68,68,72,72,67, \ - 68,68,68,76,76,68,75,75,68,72,76,68,68,75,72,72, \ - 78,73,74,72,76,74,76,72,76,74,76,72,76,76,75,76, \ - 75,74,76,76,99,99,104,76,76,111,104,102,99,99,99,104, \ - 93,105,99,104,99,104,99,99,99,96,102,99,104,104,104,108, \ - 104,105,111,110,110,111,111,111,109,111,110,111,111,114,108,111, \ - 111,111,105,105,111,108,111,110,111,110,111,111,110,111,110,134, \ - 111,141,153,153,153,140,141,165,141,153,151,153,153,153,152,152, \ - 153,165,153,152,153,153,153,163,165,164,165,153,153,164,163,164, \ - 165,165,153,168,168,173,174,165,176,177,177,164,176,177,165,165, \ - 165,172,164,165,165,165,168,177,175,176,177,176,165,175,176,176, \ - 165,177,176,177,204,204,204,204,204,203,177,218,217,220,204,219, \ - 220,217,220,220,220,218,219,220,220,220,220,217,217,219,220,220, \ - 217,204,217,219,220,220,217,218,218,219,220,219,220,219,219,220, \ - 220,220,220,220,219,220,220,220,220,251,220,219,220,220,220,236, \ - 249,220,251,250,249,249,251,248,251,251,251,250,251,251,251,249, \ - 248,248,240,250,250,250,249,251,246,251,250,251,251,251,250,250, \ - 251,249,249,250,251,251,249,251,250,306,305,306,306,306,306,306, \ - 306,306,306,251,306,306,305,305,306,306,305,305,306,306,306,305, \ - 330,305,306,305,306,306,306,330,306,306,305,305,330,330,327,330, \ - 330,330,306,329,330,330,330,330,330,329,330,306,330,330,329,329, \ - 329,330,329,330,330,330,330,330,330,327,328,329,330,329,329,330, \ - 330,329,330,330,328,330,330,330,330,330,354,330,329,330,330,354, \ - 330,329,330,353,354,330,354,354,330,353,354,354,354,354,354,354, \ - 354,354,353,354,352,354,354,354,330,354,354,353,354,354,354,378, \ - 353,408,408,408,408,407,408,407,407,408,408,408,408,407,408,408, \ - 407,407,407,440,407,408,408,407,439,408,408,408,407,408,440,440, \ - 440,440,440,440,440,439,440,437,439,440,439,439,440,440,439,440, \ - 439,439,440,439,440,440,440,439,438,439,440,440,439,440,438,439, \ - 440,440,440,439,440,440,440,440,438,440,439,439,440,440,440,439, \ - 440,440,440,440,440,440,439,440,440,471,472,471,439,440,439,472, \ - 472,472,472,472,472,472,440,472,439,440,471,472,471,471,439,472, \ - 496,496,496,472,440,471,472,480,495,496,496,495,472,534,536,534, \ - 534,536,536,536,536,536,536,536,536,536,535,536,536,536,536,536, \ - 534,535,536,536,536,535,534,534,535,536,536,534,535,536,536,535, \ - 536,536,536,536,535,536,536,536,536,536,535,536,568,535,536,536, \ - 536,535,536,568,536,536,568,536,568,568,568,536,568,536,536,566, \ - 567,567,535,568,568,536,535,536,535,536,536,536,567,536,568,536, \ - 568,567,568,568,567,600,597,568,567,567,568,600,568,568,568,598, \ - 566,567,568,568,566,568,568,568,567,568,567,568,568,568,568,568, \ - 600,567,568,600,568,600,568,568,568,568,568,600,599,566,568,600, \ - 568,568,600,567,568,599,567,600,599,600,568,600,567,599,600,599, \ - 568,597,600,598,600,599,599,599,600,600,598,600,598,600,597,600, \ - 600,600,600,600,600,599,600,600,598,599,600,599,600,639,600,600, \ - 600,600,568,639,600,568,567,568,568,568,600,640,600,599,600,599, \ - 600,600,600,598,600,599,568,600,598,600,600,599,600,597,639,598, \ - 600,600,600,600,599,600,600,600,600,600,600,687,736,598,599,600, \ - 736,600,600,688,736,736,600,688,735,736,736,734,736,736,735,736, \ - 640,734,735,736,734,733,736,736,731,735,736,736,736,736,736,736, \ - 736,735,736,736,736,736,784,735,784,735,784,783,783,736,736,735, \ - 784,784,784,736,783,784,784,784,784,783,783,784,784,784,784,784, \ - 781,782,782,784,784,784,784,784,784,734,784,783,784,784,784,736, \ - 808,783,784,784,784,783,784,783,784,783,784,783,784,832,832,829, \ - 832,824,823,832,824,784,784,824,831,832,784,783,784,783,784,832, \ - 784,784,784,783,784,784,781,784,784,784,784,783,824,832,831,784, \ - 832,831,832,830,832,807,784,832,830,784,832,808,832,824,823,832, \ - 824,808,831,824,824,824,832,823,832,824,832,831,832,832,829,830, \ - 831,832,832,832,831,831,832,832,830,832,832,832,832,831,831,832, \ - 879,832,832,880,832,831,832,831,832,832,832,832,832,832,832,831 \ - -#define MPFR_SQRHIGH_TAB \ - -1,0,0,0,-1,-1,-1,-1,-1,-1,-1,8,8,8,9,9, \ - 10,10,11,13,13,14,15,16,14,16,17,16,18,17,19,18, \ - 20,18,19,22,21,22,23,22,23,22,25,24,25,24,25,26, \ - 27,26,29,27,28,29,30,34,34,36,36,38,38,40,40,42, \ - 34,44,42,46,38,42,44,38,38,44,40,42,42,50,44,46, \ - 50,48,48,44,50,52,52,46,50,46,52,50,52,50,50,52, \ - 52,54,52,52,54,58,58,54,57,58,58,58,56,58,58,58, \ - 68,58,64,68,72,60,64,72,68,64,72,64,72,68,72,68, \ - 76,76,72,76,80,76,76,76,84,80,76,88,84,84,84,84, \ - 88,84,87,88,88,92,92,92,88,96,92,96,96,92,96,96, \ - 100,100,100,100,96,84,92,92,88,96,92,88,99,92,96,91, \ - 92,96,100,100,99,100,100,100,100,96,98,96,100,98,100,100, \ - 100,100,100,117,100,123,123,135,122,123,124,129,126,122,135,123, \ - 129,135,135,133,134,135,141,140,135,126,140,135,129,129,129,132, \ - 146,134,129,147,150,135,152,140,135,140,141,141,147,141,147,147, \ - 147,150,141,147,152,147,141,150,141,151,153,146,147,152,147,147, \ - 147,152,147,153,151,153,147,147,153,150,147,152,153,150,150,152, \ - 153,150,153,152,153,150,147,164,150,187,188,148,187,180,152,196, \ - 187,196,180,186,187,188,196,187,196,188,196,180,195,196,188,188, \ - 188,196,196,188,192,194,195,196,196,196,195,204,211,212,203,204, \ - 204,196,196,203,204,220,212,203,196,204,195,204,196,187,216,188, \ - 200,195,196,204,219,203,195,196,188,203,204,195,203,204,219,195, \ - 196,211,212,220,196,203,196,212,204,204,220,196,203,220,220,211, \ - 203,212,212,211,212,212,216,218,220,211,211,218,220,219,220,220, \ - 220,220,220,220,220,220,219,220,282,282,219,276,276,282,282,275, \ - 276,282,269,276,258,294,276,282,282,294,294,270,282,294,258,270, \ - 258,270,294,270,258,270,282,276,306,282,282,282,282,282,276,270, \ - 282,282,282,281,282,281,281,294,282,276,282,282,282,294,294,282, \ - 306,306,294,282,294,282,294,294,305,288,306,294,294,294,306,294, \ - 306,305,318,306,306,318,312,306,306,318,305,306,306,306,317,312, \ - 311,318,311,312,324,318,317,330,330,318,318,330,323,330,329,330, \ - 324,330,329,324,342,330,342,329,330,336,341,318,294,329,341,306, \ - 300,305,300,299,300,305,306,306,324,305,318,318,312,317,330,306, \ - 306,306,306,306,318,317,318,318,318,324,330,329,324,318,318,318, \ - 323,324,306,323,324,324,329,328,328,330,330,330,318,318,318,317, \ - 317,336,330,342,342,341,330,330,330,342,330,340,330,330,318,341, \ - 342,426,426,341,342,425,426,426,426,342,426,425,426,425,425,426, \ - 426,426,318,426,425,450,426,425,378,378,378,426,426,450,450,450, \ - 402,330,449,450,449,450,450,449,450,450,402,450,450,450,450,450, \ - 426,401,402,450,450,426,426,450,474,472,474,450,426,426,426,474, \ - 474,474,473,425,426,450,450,426,424,425,426,426,474,449,450,450, \ - 450,426,474,449,426,450,450,448,449,498,450,498,450,426,450,449, \ - 448,450,450,448,449,449,474,448,449,450,450,473,474,474,473,449, \ - 449,474,450,474,450,450,473,474,450,473,474,474,474,474,521,498, \ - 474,474,474,474,474,474,498,498,474,474,474,473,473,474,474,498, \ - 498,474,498,498,498,498,498,519,498,522,522,498,498,520,498,498, \ - 498,498,498,522,522,498,521,521,520,521,522,522,474,522,521,546, \ - 520,522,546,522,516,546,546,521,522,522,522,521,522,522,521,474, \ - 545,545,546,546,474,522,522,522,522,474,498,546,522,546,546,544, \ - 545,545,522,521,546,546,546,522,546,545,522,498,546,546,522,520, \ - 522,522,522,521,521,545,546,522,521,522,600,568,522,522,521,522, \ - 600,522,521,521,522,522,519,599,521,522,545,546,522,545,546,545, \ - 522,599,522,521,546,545,546,546,600,598,600,546,546,545,546,600, \ - 568,546,600,546,598,600,600,632,632,545,546,599,600,546,546,545, \ - 546,632,632,600,632,631,632,631,600,600,632,632,598,600,632,599, \ - 599,599,600,599,599,600,600,600,600,596,600,631,599,600,600,599, \ - 600,600,600,600,600,600,664,631,632,600,663,664,696,664,600,664, \ - 663,631,696,662,600,693,696,695,663,696,696,664,631,632,688,630, \ - 632,632,696,631,695,632,632,695,696,695,695,696,696,696,632,695, \ - 696,695,696,696,632,695,696,631,664,664,695,663,663,664,696,687, \ - 662,664,664,663,664,663,694,695,695,727,728,728,693,728,693,695, \ - 696,696,696,696,696,694,695,696,696,695,696,694,727,696,696,688, \ - 695,696,696,695,696,695,695,696,696,727,696,696,695,696,695,696, \ - 696,695,696,695,696,696,696,728,728,696,720,728,728,728,726,728 \ - -#define MPFR_DIVHIGH_TAB \ - 0,1,2,3,4,5,6,7,8,9,10,9,10,11,14,13, \ - 14,11,16,17,13,14,15,16,16,14,16,16,16,19,20,18, \ - 23,18,22,19,24,25,27,23,23,24,24,23,27,28,27,28, \ - 28,33,29,30,32,29,37,32,35,33,33,39,33,33,35,38, \ - 39,38,38,37,38,39,37,37,48,40,39,40,40,50,51,46, \ - 47,48,48,46,50,50,50,59,52,50,51,48,56,56,54,50, \ - 51,54,53,58,58,58,56,59,61,58,62,59,62,67,62,67, \ - 60,64,71,68,64,64,62,68,67,72,66,72,76,72,74,72, \ - 67,72,72,74,76,70,74,74,76,76,76,76,76,76,74,76, \ - 76,76,80,87,78,76,88,80,79,88,88,96,94,96,88,103, \ - 104,104,104,100,103,102,104,104,104,96,104,104,112,112,104,104, \ - 95,104,104,103,104,104,104,112,104,104,104,103,112,104,104,112, \ - 104,104,112,104,104,112,104,112,112,112,111,112,120,104,112,116, \ - 112,120,112,110,120,112,120,112,120,118,116,126,119,120,128,120, \ - 136,128,120,120,136,120,120,136,152,136,136,136,143,136,128,140, \ - 128,152,148,152,136,144,152,152,144,152,144,152,152,152,152,152, \ - 134,152,152,136,136,136,140,152,152,143,152,144,152,152,152,152, \ - 152,152,144,152,152,152,144,152,152,152,152,152,152,152,152,152, \ - 152,152,152,152,152,152,150,151,152,152,152,152,156,152,160,160, \ - 168,156,176,159,160,160,176,160,176,174,176,176,208,176,176,174, \ - 176,183,176,208,208,176,208,208,208,208,192,208,208,208,208,208, \ - 208,208,208,200,208,208,208,208,208,208,208,208,208,208,208,208, \ - 208,208,208,208,208,208,222,208,209,208,208,208,208,208,208,222, \ - 208,208,208,208,208,208,208,208,208,208,208,208,208,207,208,208, \ - 208,208,208,208,208,208,208,208,208,222,220,220,222,208,221,216, \ - 208,220,208,208,208,209,208,208,220,208,208,208,208,208,222,221, \ - 222,220,220,224,220,216,216,220,216,220,221,222,216,224,224,222, \ - 222,221,221,222,222,224,222,222,222,222,228,240,232,224,225,225, \ - 304,228,272,256,231,248,240,234,232,272,288,234,270,256,264,240, \ - 240,272,256,272,270,271,272,240,303,270,304,304,272,303,304,304, \ - 304,304,272,270,272,304,288,287,257,303,304,304,288,304,304,272, \ - 304,304,304,272,304,305,304,303,304,304,303,302,303,304,272,303, \ - 304,304,304,303,304,304,272,304,304,288,288,304,304,304,305,282, \ - 304,304,303,304,304,304,304,304,303,304,304,304,302,304,304,305, \ - 303,302,287,302,304,304,304,305,304,304,302,302,303,303,304,288, \ - 303,304,304,304,304,302,303,304,304,288,304,303,304,304,304,303, \ - 304,304,303,303,304,304,304,304,304,304,304,303,304,303,304,304, \ - 304,303,304,303,304,304,320,303,304,304,304,304,304,304,305,306, \ - 320,312,320,320,320,320,320,320,320,320,320,320,320,320,352,320, \ - 352,320,336,320,352,320,319,320,336,336,352,348,348,344,348,348, \ - 352,348,351,351,351,352,352,354,350,352,352,352,360,353,416,359, \ - 352,360,416,352,352,370,416,352,353,416,352,416,416,416,352,416, \ - 352,416,416,416,416,352,408,416,416,384,416,352,416,392,416,416, \ - 416,401,408,416,416,416,416,416,416,416,416,407,416,408,416,416, \ - 416,408,408,416,416,416,416,432,416,416,416,436,440,416,416,440, \ - 440,416,416,416,432,416,440,416,440,438,440,416,440,416,440,438, \ - 440,444,416,448,416,440,440,440,416,448,448,415,447,440,416,440, \ - 416,416,408,408,416,416,416,448,416,416,416,416,416,416,416,416, \ - 416,416,416,416,416,416,440,416,417,416,416,416,416,416,416,416, \ - 416,416,416,440,416,416,440,416,416,448,416,416,416,416,416,416, \ - 448,416,416,416,448,416,416,416,416,416,440,416,416,416,432,440, \ - 416,416,416,416,416,432,416,432,432,440,440,416,416,416,440,440, \ - 440,448,448,438,440,433,440,439,440,448,440,440,440,439,440,447, \ - 444,439,440,440,440,440,448,448,448,440,440,448,444,448,443,440, \ - 440,440,440,440,440,448,448,440,448,439,440,444,447,448,448,448, \ - 448,448,448,448,448,448,448,447,448,448,448,448,448,448,512,608, \ - 480,608,464,480,608,456,464,608,608,480,608,480,608,480,480,480, \ - 608,480,512,480,608,513,512,608,512,512,608,512,608,496,480,496, \ - 608,516,496,608,480,512,608,512,608,512,512,608,608,608,608,608, \ - 608,576,608,607,608,608,512,608,607,609,607,608,608,609,608,608, \ - 609,608,608,608,607,608,607,608,607,608,608,608,608,608,608,607, \ - 607,608,608,608,608,608,607,607,608,607,608,608,608,607,608,608, \ - 608,608,609,609,608,608,609,608,608,608,606,606,608,608,609,607, \ - 606,607,608,608,610,608,608,609,608,608,608,608,608,608,607,608 \ - -#define MPFR_MUL_THRESHOLD 15 /* limbs */ -#define MPFR_SQR_THRESHOLD 18 /* limbs */ -#define MPFR_DIV_THRESHOLD 22 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 649 /* bits */ -#define MPFR_EXP_THRESHOLD 10653 /* bits */ -#define MPFR_SINCOS_THRESHOLD 36331 /* bits */ -#define MPFR_AI_THRESHOLD1 -21595 /* threshold for negative input of mpfr_ai */ -#define MPFR_AI_THRESHOLD2 2333 -#define MPFR_AI_THRESHOLD3 33925 -/* Tuneup completed successfully, took 1155 seconds */ diff --git a/external/lgpl3/mpfr/dist/src/x86_64/pentium4/mparam.h b/external/lgpl3/mpfr/dist/src/x86_64/pentium4/mparam.h deleted file mode 100644 index cfbbaca0f135..000000000000 --- a/external/lgpl3/mpfr/dist/src/x86_64/pentium4/mparam.h +++ /dev/null @@ -1,160 +0,0 @@ -/* Various Thresholds of MPFR, not exported. -*- mode: C -*- - -Copyright 2005-2018 Free Software Foundation, Inc. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Generated by MPFR's tuneup.c, 2009-02-09, gcc 4.3 */ -/* crumble.loria.fr with gmp-4.2.4 */ - - -#define MPFR_MULHIGH_TAB \ - -1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ - 0,0,0,19,20,20,24,26,0,0,24,26,28,27,26,28, \ - 30,32,32,32,30,30,34,34,32,34,34,36,32,34,36,34, \ - 35,0,0,36,36,0,37,48,0,0,48,48,51,0,48,52, \ - 51,0,52,52,51,55,52,56,55,0,56,60,59,59,60,64, \ - 63,63,64,64,67,67,68,72,63,71,72,60,67,67,60,72, \ - 63,61,64,64,63,71,68,68,71,67,68,68,67,71,68,72, \ - 68,68,72,72,76,76,69,69,72,72,71,103,104,72,73,96, \ - 103,94,95,104,96,96,94,103,104,104,96,96,103,103,104,104, \ - 120,120,103,103,104,104,120,111,103,112,104,104,120,120,109,103, \ - 119,119,120,120,127,112,128,128,120,120,136,127,128,128,120,126, \ - 121,129,126,134,135,135,136,120,113,113,114,118,127,127,136,120, \ - 121,125,126,118,119,119,120,136,121,153,122,122,127,119,120,128, \ - 165,153,162,134,163,159,136,136,153,153,134,158,135,135,136,136, \ - 153,153,162,158,159,159,156,152,153,189,158,186,187,163,156,168, \ - 189,159,165,165,176,176,172,172,183,173,164,174,165,165,176,176, \ - 177,177,183,188,189,189,180,185,176,186,177,177,193,188,189,189, \ - 200,200,201,201,177,207,188,198,199,189,200,200,186,201,207,207, \ - 213,203,189,189,200,210,201,196,212,207,208,213,189,199,200,200, \ - 203,209,216,204,199,223,206,200,213,225,208,208,203,203,216,204, \ - 205,205,224,212,213,213,184,208,209,203,198,210,199,187,206,200, \ - 201,189,208,208,203,185,216,198,187,199,200,212,213,213,202,208, \ - 203,197,198,198,199,211,212,212,285,213,280,274,227,275,288,204, \ - 284,284,278,285,307,216,273,308,309,309,275,219,213,311,305,284, \ - 306,306,307,307,308,308,309,309,303,303,311,311,284,312,285,285, \ - 307,286,287,308,309,309,303,303,304,332,305,305,306,299,328,300, \ - 308,301,309,309,303,310,311,311,333,305,285,285,307,314,308,308, \ - 321,305,354,322,331,355,332,308,309,333,334,334,303,303,304,312, \ - 305,305,306,306,307,307,308,308,309,309,302,302,375,311,312,360, \ - 353,305,330,354,307,355,380,308,357,309,358,358,359,311,312,312, \ - 345,329,378,354,331,355,356,356,357,357,374,334,375,311,336,384, \ - 356,329,330,357,331,358,404,332,369,333,334,334,335,353,354,354, \ - 355,382,356,347,357,357,358,358,377,359,405,333,352,379,353,353, \ - 354,354,355,355,356,356,357,357,358,376,359,377,369,360,379,370, \ - 380,380,354,372,355,382,383,401,357,357,376,358,377,377,405,378, \ - 379,379,380,380,381,381,402,402,353,403,404,404,405,405,376,376, \ - 377,357,368,358,379,379,360,400,401,381,372,452,373,383,454,384, \ - 405,405,456,356,357,357,358,378,379,379,490,370,381,381,492,402, \ - 463,403,404,404,405,405,456,456,527,357,448,448,489,449,400,450, \ - 453,453,454,454,455,455,456,456,468,490,491,491,492,404,405,482, \ - 472,450,451,462,463,463,464,453,465,465,455,455,456,489,490,490, \ - 491,491,492,492,405,526,483,527,484,484,452,452,486,453,454,454, \ - 455,477,456,522,490,490,491,524,481,492,526,482,483,527,495,517, \ - 521,533,522,474,499,523,524,524,489,489,490,526,527,527,528,528, \ - 529,529,518,554,495,483,496,472,521,557,486,522,535,535,524,512, \ - 525,561,526,526,491,527,528,528,529,517,518,554,531,519,544,520, \ - 521,521,558,546,559,535,560,536,489,573,490,514,491,563,492,492, \ - 528,489,555,555,491,491,492,596,597,545,546,546,560,599,600,600, \ - 523,562,563,511,564,525,526,630,553,527,528,528,607,555,595,543, \ - 544,531,532,571,559,559,599,560,535,535,562,562,563,537,564,564, \ - 565,630,514,631,528,632,555,542,634,595,557,557,597,558,559,559, \ - 571,599,530,530,559,545,546,616,561,547,548,534,633,563,564,564, \ - 607,537,594,636,567,539,624,554,555,555,598,598,557,557,558,572, \ - 559,559,560,574,603,561,562,632,563,563,578,592,593,607,580,608, \ - 553,609,624,596,597,597,598,612,627,585,600,614,573,629,616,602, \ - 599,599,585,585,616,616,587,632,603,603,634,634,635,605,636,621, \ - 622,607,623,593,609,609,625,610,611,626,612,597,628,598,599,599, \ - 600,630,631,616,602,632,633,603,634,634,635,635,636,636,607,637, \ - 668,608,609,609,610,610,611,611,597,657,628,628,629,629,630,630, \ - 609,625,562,626,627,563,564,628,629,629,630,630,631,599,664,632, \ - 681,633,634,634,635,635,620,636,621,621,622,622,623,639,672,592, \ - 609,641,594,594,595,627,596,564,629,597,598,598,631,599,600,600, \ - 601,681,618,634,603,635,636,636,557,621,622,606,623,623,608,608 \ - -#define MPFR_SQRHIGH_TAB \ - -1,-1,-1,-1,-1,-1,-1,-1,0,0,0,0,8,8,9,9, \ - 10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17, \ - 18,18,19,19,20,20,21,21,22,22,23,23,26,24,25,25, \ - 26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33, \ - 34,34,35,35,36,36,37,38,39,39,39,39,40,40,41,41, \ - 42,42,43,43,44,44,45,46,46,46,47,47,48,48,49,49, \ - 50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57, \ - 58,58,59,59,60,60,61,61,62,62,63,68,64,64,65,65, \ - 66,68,67,69,68,68,71,69,70,75,76,76,72,72,73,73, \ - 74,82,75,80,78,76,77,77,78,83,79,81,82,80,81,81, \ - 82,82,83,85,84,84,85,85,86,86,87,87,88,88,89,89, \ - 90,92,91,93,94,92,93,93,94,94,95,95,96,96,97,97, \ - 98,98,99,99,100,100,101,101,102,102,103,103,104,104,105,105, \ - 106,106,107,107,108,108,109,112,110,110,111,118,112,112,113,113, \ - 114,114,115,122,123,116,117,117,118,118,119,119,120,120,121,121, \ - 122,122,123,123,124,124,125,125,126,126,127,127,128,128,129,129, \ - 130,154,135,131,132,132,133,133,134,134,135,135,136,140,151,137, \ - 142,138,139,143,144,154,155,150,151,156,152,143,153,158,145,145, \ - 165,146,147,147,152,162,149,149,150,150,151,151,152,171,153,153, \ - 154,154,155,155,156,156,157,157,158,158,159,159,160,160,161,161, \ - 162,162,163,163,164,164,165,165,166,166,167,167,168,168,169,169, \ - 170,170,171,171,172,183,173,173,174,174,175,175,176,187,194,182, \ - 183,178,179,179,180,180,181,181,182,182,183,183,195,184,185,185, \ - 186,197,187,187,188,188,189,189,190,190,191,191,192,192,193,204, \ - 207,200,201,208,209,196,197,203,204,198,199,199,200,200,201,201, \ - 202,215,216,230,217,210,211,218,212,206,207,207,208,208,209,209, \ - 210,230,231,231,232,225,226,226,227,227,228,242,222,257,217,217, \ - 218,245,246,219,220,240,241,234,235,235,236,264,230,258,225,225, \ - 226,226,227,227,228,228,229,260,261,230,231,270,247,232,233,233, \ - 234,234,235,235,236,236,237,237,238,238,239,239,240,240,241,241, \ - 242,242,243,243,244,244,245,245,246,246,247,247,248,248,249,249, \ - 250,250,251,251,252,252,253,253,254,254,255,255,256,256,257,257, \ - 258,258,259,259,260,260,261,261,262,262,263,263,264,264,265,265, \ - 266,266,267,267,268,268,269,269,270,270,279,271,272,272,273,273, \ - 274,274,275,275,276,276,277,277,278,278,279,279,280,280,281,281, \ - 282,282,283,283,284,284,285,285,294,286,287,287,288,288,289,289, \ - 290,290,291,291,292,292,293,293,294,294,295,295,296,296,297,297, \ - 298,298,299,299,300,300,301,301,302,302,303,303,304,304,305,305, \ - 306,306,307,307,308,308,309,309,310,310,311,311,312,312,313,313, \ - 314,314,315,315,316,316,317,317,318,318,319,319,320,320,321,321, \ - 322,322,323,323,324,324,325,325,326,326,327,337,349,338,329,329, \ - 330,330,331,331,332,332,333,333,334,334,335,335,336,336,337,337, \ - 338,338,339,360,340,340,341,341,342,342,343,343,344,354,355,345, \ - 346,346,368,368,369,369,359,349,393,382,383,361,362,362,363,363, \ - 365,365,366,390,367,391,380,404,358,393,406,382,383,395,396,396, \ - 385,409,386,410,387,399,388,412,413,401,390,367,368,403,404,416, \ - 417,405,382,406,407,407,408,408,409,409,410,410,435,411,412,412, \ - 413,413,414,379,439,427,428,392,393,441,442,430,479,455,444,432, \ - 437,386,451,387,465,439,427,389,390,454,455,455,404,417,444,444, \ - 394,394,395,446,460,460,461,487,410,475,399,476,477,464,401,465, \ - 402,492,403,403,404,404,405,405,406,406,407,419,408,408,409,409, \ - 410,410,411,411,412,412,413,413,414,414,415,415,416,416,417,417, \ - 418,418,419,419,420,420,421,421,422,422,423,423,424,424,425,508, \ - 426,426,427,427,428,428,429,429,430,430,431,431,432,432,433,433, \ - 434,434,435,435,436,436,437,437,438,438,439,536,440,440,441,441, \ - 442,442,443,443,444,444,445,445,446,446,447,447,448,448,449,476, \ - 450,450,451,451,452,452,482,453,454,454,455,455,456,456,457,457, \ - 458,458,459,459,460,460,461,461,462,462,463,463,464,464,465,465, \ - 466,466,467,467,468,468,469,469,470,470,471,471,472,472,473,473, \ - 474,474,475,475,476,476,477,477,478,478,479,479,480,480,481,481, \ - 482,482,483,483,484,484,485,485,486,486,487,487,488,488,489,489, \ - 490,490,491,491,492,492,493,493,494,494,495,495,496,496,497,497, \ - 498,498,499,499,500,500,501,501,502,502,503,503,504,504,505,505, \ - 506,506,507,507,508,508,509,509,510,510,511,511,512,512,513,513 \ - -#define MPFR_MUL_THRESHOLD 8 /* limbs */ -#define MPFR_EXP_2_THRESHOLD 519 /* bits */ -#define MPFR_EXP_THRESHOLD 6533 /* bits */ diff --git a/external/lgpl3/mpfr/dist/tests/tasin.c b/external/lgpl3/mpfr/dist/tests/tasin.c index bcc4ebe2d9c8..d82980b55721 100644 --- a/external/lgpl3/mpfr/dist/tests/tasin.c +++ b/external/lgpl3/mpfr/dist/tests/tasin.c @@ -1,6 +1,6 @@ /* Test file for mpfr_asin. -Copyright 2001-2018 Free Software Foundation, Inc. +Copyright 2001-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -17,7 +17,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., +https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "mpfr-test.h" @@ -98,7 +98,7 @@ special (void) mpfr_set_ui (x, 1, MPFR_RNDN); /* exact */ mpfr_asin (y, x, (mpfr_rnd_t) r); mpfr_const_pi (x, (mpfr_rnd_t) r); - mpfr_div_2exp (x, x, 1, MPFR_RNDN); /* exact */ + mpfr_div_2ui (x, x, 1, MPFR_RNDN); /* exact */ if (mpfr_cmp (x, y)) { printf ("Error: asin(1) != Pi/2 for rnd=%s\n", @@ -114,7 +114,7 @@ special (void) mpfr_asin (y, x, (mpfr_rnd_t) r); mpfr_const_pi (x, MPFR_INVERT_RND((mpfr_rnd_t) r)); mpfr_neg (x, x, MPFR_RNDN); /* exact */ - mpfr_div_2exp (x, x, 1, MPFR_RNDN); /* exact */ + mpfr_div_2ui (x, x, 1, MPFR_RNDN); /* exact */ if (mpfr_cmp (x, y)) { printf ("Error: asin(-1) != -Pi/2 for rnd=%s\n", diff --git a/external/lgpl3/mpfr/dist/tests/tatan.c b/external/lgpl3/mpfr/dist/tests/tatan.c index cfaf16ad32bc..53b41d78d204 100644 --- a/external/lgpl3/mpfr/dist/tests/tatan.c +++ b/external/lgpl3/mpfr/dist/tests/tatan.c @@ -1,6 +1,6 @@ /* Test file for mpfr_atan. -Copyright 2001-2018 Free Software Foundation, Inc. +Copyright 2001-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -17,7 +17,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., +https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "mpfr-test.h" @@ -55,7 +55,7 @@ special (void) mpfr_set_inf (x, 1); mpfr_atan (y, x, (mpfr_rnd_t) r); mpfr_const_pi (x, (mpfr_rnd_t) r); - mpfr_div_2exp (x, x, 1, (mpfr_rnd_t) r); + mpfr_div_2ui (x, x, 1, (mpfr_rnd_t) r); if (mpfr_cmp (x, y)) { printf ("Error: mpfr_atan(+Inf), rnd=%s\n", @@ -71,7 +71,7 @@ special (void) mpfr_atan (y, x, (mpfr_rnd_t) r); mpfr_const_pi (x, MPFR_INVERT_RND((mpfr_rnd_t) r)); mpfr_neg (x, x, (mpfr_rnd_t) r); - mpfr_div_2exp (x, x, 1, (mpfr_rnd_t) r); + mpfr_div_2ui (x, x, 1, (mpfr_rnd_t) r); if (mpfr_cmp (x, y)) { printf ("Error: mpfr_atan(-Inf), rnd=%s\n", diff --git a/external/lgpl3/mpfr/dist/tests/texp.c b/external/lgpl3/mpfr/dist/tests/texp.c index 57fee280142e..1ff1529ad3d5 100644 --- a/external/lgpl3/mpfr/dist/tests/texp.c +++ b/external/lgpl3/mpfr/dist/tests/texp.c @@ -1,6 +1,6 @@ /* Test file for mpfr_exp. -Copyright 1999, 2001-2018 Free Software Foundation, Inc. +Copyright 1999, 2001-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -17,7 +17,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., +https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "mpfr-test.h" @@ -618,6 +618,8 @@ bug20080731 (void) mpfr_set_str (x, "-2.c5c85fdf473de6af278ece700fcbdabd03cd0cb9ca62d8b62c@7", 16, MPFR_RNDN); + /* exp(x) is just below 0xf.fffffffffffffffp-1073741828 */ + mpfr_init2 (y1, prec); mpfr_exp (y1, x, MPFR_RNDU); @@ -629,9 +631,9 @@ bug20080731 (void) if (mpfr_cmp0 (y1, y2) != 0) { printf ("Error in bug20080731\nExpected "); - mpfr_out_str (stdout, 16, 0, y2, MPFR_RNDN); + mpfr_dump (y2); printf ("\nGot "); - mpfr_out_str (stdout, 16, 0, y1, MPFR_RNDN); + mpfr_dump (y1); printf ("\n"); exit (1); } diff --git a/external/lgpl3/mpfr/dist/tests/tround_prec.c b/external/lgpl3/mpfr/dist/tests/tround_prec.c deleted file mode 100644 index ce40126ec413..000000000000 --- a/external/lgpl3/mpfr/dist/tests/tround_prec.c +++ /dev/null @@ -1,121 +0,0 @@ -/* Test file for mpfr_prec_round. - -Copyright 1999-2004, 2006-2018 Free Software Foundation, Inc. -Contributed by the AriC and Caramba projects, INRIA. - -This file is part of the GNU MPFR Library. - -The GNU MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at your -option) any later version. - -The GNU MPFR Library is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see -http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include "mpfr-test.h" - -int -main (void) -{ - mpfr_t x; - mpfr_exp_t emax; - - tests_start_mpfr (); - - mpfr_init (x); - - mpfr_set_nan (x); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_nan_p (x)); - - mpfr_set_inf (x, 1); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_inf_p (x) && mpfr_sgn (x) > 0); - - mpfr_set_inf (x, -1); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_inf_p (x) && mpfr_sgn (x) < 0); - - mpfr_set_ui (x, 0, MPFR_RNDN); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_cmp_ui (x, 0) == 0 && MPFR_IS_POS(x)); - - mpfr_set_ui (x, 0, MPFR_RNDN); - mpfr_neg (x, x, MPFR_RNDN); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_cmp_ui (x, 0) == 0 && MPFR_IS_NEG(x)); - - emax = mpfr_get_emax (); - set_emax (0); - mpfr_set_prec (x, 3); - mpfr_set_str_binary (x, "0.111"); - mpfr_prec_round (x, 2, MPFR_RNDN); - MPFR_ASSERTN(mpfr_inf_p (x) && mpfr_sgn (x) > 0); - set_emax (emax); - - mpfr_set_prec (x, mp_bits_per_limb + 2); - mpfr_set_ui (x, 1, MPFR_RNDN); - mpfr_nextbelow (x); - mpfr_prec_round (x, mp_bits_per_limb + 1, MPFR_RNDN); - MPFR_ASSERTN(mpfr_cmp_ui (x, 1) == 0); - - mpfr_set_prec (x, 3); - mpfr_set_ui (x, 5, MPFR_RNDN); - mpfr_prec_round (x, 2, MPFR_RNDN); - if (mpfr_cmp_ui(x, 4)) - { - printf ("Error in tround: got "); - mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN); - printf (" instead of 4\n"); - exit (1); - } - - /* check case when reallocation is needed */ - mpfr_set_prec (x, 3); - mpfr_set_ui (x, 5, MPFR_RNDN); /* exact */ - mpfr_prec_round (x, mp_bits_per_limb + 1, MPFR_RNDN); - if (mpfr_cmp_ui(x, 5)) - { - printf ("Error in tround: got "); - mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN); - printf (" instead of 5\n"); - exit (1); - } - - mpfr_clear(x); - mpfr_init2 (x, 3); - mpfr_set_si (x, -5, MPFR_RNDN); /* exact */ - mpfr_prec_round (x, mp_bits_per_limb + 1, MPFR_RNDN); - if (mpfr_cmp_si(x, -5)) - { - printf ("Error in tround: got "); - mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN); - printf (" instead of -5\n"); - exit (1); - } - - /* check case when new precision needs less limbs */ - mpfr_set_prec (x, mp_bits_per_limb + 1); - mpfr_set_ui (x, 5, MPFR_RNDN); /* exact */ - mpfr_prec_round (x, 3, MPFR_RNDN); /* exact */ - if (mpfr_cmp_ui(x, 5)) - { - printf ("Error in tround: got "); - mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN); - printf (" instead of 5\n"); - exit (1); - } - - mpfr_clear(x); - - tests_end_mpfr (); - return 0; -}