Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/mpc/dist initial import of mpc 1.3.1. change...



details:   https://anonhg.NetBSD.org/src/rev/069a1210cca3
branches:  trunk
changeset: 373838:069a1210cca3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Mar 05 22:35:51 2023 +0000

description:
initial import of mpc 1.3.1.  changes from 1.2.1 include:

New function: mpc_agm
New rounding modes "away from zero", indicated by the letter "A" and
corresponding to MPFR_RNDA on the designated real or imaginary part.
New experimental ball arithmetic.
New experimental function: mpc_eta_fund
Bug fixes:
- mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
- mpc_pow_fr: sign of zero part of result when the base has up to sign
  the same real and imaginary part, and the exponent is an even positive
  integer
- mpc_fma: the returned int value was incorrect in some cases
  (indicating whether the rounded real/imaginary parts were
  smaller/equal/greater than the exact values), but the computed complex
  value was correct.
- Remove the unmaintained Makefile.vc; build files for Visual Studio are
  maintained independently by Brian Gladman.

diffstat:

 external/lgpl3/mpc/dist/AUTHORS                   |     2 +-
 external/lgpl3/mpc/dist/INSTALL                   |     6 +-
 external/lgpl3/mpc/dist/Makefile.am               |     4 +-
 external/lgpl3/mpc/dist/Makefile.in               |    25 +-
 external/lgpl3/mpc/dist/NEWS                      |    33 +-
 external/lgpl3/mpc/dist/README                    |    29 +-
 external/lgpl3/mpc/dist/TODO                      |    32 +-
 external/lgpl3/mpc/dist/aclocal.m4                |    76 +-
 external/lgpl3/mpc/dist/build-aux/ar-lib          |     2 +-
 external/lgpl3/mpc/dist/build-aux/compile         |     2 +-
 external/lgpl3/mpc/dist/build-aux/config.sub      |   647 +++--
 external/lgpl3/mpc/dist/build-aux/depcomp         |     2 +-
 external/lgpl3/mpc/dist/build-aux/install-sh      |   144 +-
 external/lgpl3/mpc/dist/build-aux/ltmain.sh       |   877 +++++--
 external/lgpl3/mpc/dist/build-aux/mdate-sh        |     2 +-
 external/lgpl3/mpc/dist/build-aux/missing         |     2 +-
 external/lgpl3/mpc/dist/build-aux/test-driver     |    19 +-
 external/lgpl3/mpc/dist/build-aux/texinfo.tex     |   780 +++---
 external/lgpl3/mpc/dist/config.h.in               |    13 +-
 external/lgpl3/mpc/dist/configure                 |  2082 ++++++--------------
 external/lgpl3/mpc/dist/configure.ac              |    46 +-
 external/lgpl3/mpc/dist/doc/Makefile.in           |    14 +-
 external/lgpl3/mpc/dist/doc/mdate-sh              |    14 +-
 external/lgpl3/mpc/dist/doc/mpc.info              |   Bin 
 external/lgpl3/mpc/dist/doc/mpc.texi              |   445 ++++-
 external/lgpl3/mpc/dist/doc/stamp-vti             |     8 +-
 external/lgpl3/mpc/dist/doc/version.texi          |     8 +-
 external/lgpl3/mpc/dist/m4/libtool.m4             |   227 +-
 external/lgpl3/mpc/dist/m4/ltoptions.m4           |     4 +-
 external/lgpl3/mpc/dist/m4/ltsugar.m4             |     2 +-
 external/lgpl3/mpc/dist/m4/ltversion.m4           |    13 +-
 external/lgpl3/mpc/dist/m4/lt~obsolete.m4         |     4 +-
 external/lgpl3/mpc/dist/m4/mpc.m4                 |    47 -
 external/lgpl3/mpc/dist/src/Makefile.am           |    11 +-
 external/lgpl3/mpc/dist/src/Makefile.in           |    88 +-
 external/lgpl3/mpc/dist/src/agm.c                 |   244 ++
 external/lgpl3/mpc/dist/src/asin.c                |   175 +-
 external/lgpl3/mpc/dist/src/atan.c                |    11 +-
 external/lgpl3/mpc/dist/src/balls.c               |   427 ++++
 external/lgpl3/mpc/dist/src/clear.c               |     4 +-
 external/lgpl3/mpc/dist/src/div.c                 |     2 +-
 external/lgpl3/mpc/dist/src/eta.c                 |   311 +++
 external/lgpl3/mpc/dist/src/fma.c                 |   102 +-
 external/lgpl3/mpc/dist/src/get_version.c         |     4 +-
 external/lgpl3/mpc/dist/src/get_x.c               |     7 +-
 external/lgpl3/mpc/dist/src/init2.c               |     4 +-
 external/lgpl3/mpc/dist/src/init3.c               |     4 +-
 external/lgpl3/mpc/dist/src/logging.c             |    11 +-
 external/lgpl3/mpc/dist/src/mpc-impl.h            |    26 +-
 external/lgpl3/mpc/dist/src/mpc.h                 |    95 +-
 external/lgpl3/mpc/dist/src/mul.c                 |    15 +-
 external/lgpl3/mpc/dist/src/pow.c                 |   140 +-
 external/lgpl3/mpc/dist/src/radius.c              |   721 +++++++
 external/lgpl3/mpc/dist/src/set_prec.c            |     4 +-
 external/lgpl3/mpc/dist/src/set_str.c             |     4 +-
 external/lgpl3/mpc/dist/src/set_x.c               |    10 +-
 external/lgpl3/mpc/dist/src/set_x_x.c             |    12 +-
 external/lgpl3/mpc/dist/src/sqrt.c                |    12 +-
 external/lgpl3/mpc/dist/src/tan.c                 |    12 +-
 external/lgpl3/mpc/dist/tests/Makefile.am         |    16 +-
 external/lgpl3/mpc/dist/tests/Makefile.in         |   244 +-
 external/lgpl3/mpc/dist/tests/agm.dat             |    48 +
 external/lgpl3/mpc/dist/tests/agm.dsc             |    30 +
 external/lgpl3/mpc/dist/tests/asin.dat            |     9 +-
 external/lgpl3/mpc/dist/tests/asinh.dat           |     3 +-
 external/lgpl3/mpc/dist/tests/atan.dat            |     2 +-
 external/lgpl3/mpc/dist/tests/check_data.c        |     6 +-
 external/lgpl3/mpc/dist/tests/fma.dat             |     7 +-
 external/lgpl3/mpc/dist/tests/mpc-tests.h         |     6 +-
 external/lgpl3/mpc/dist/tests/mul.dat             |     7 +-
 external/lgpl3/mpc/dist/tests/pow_fr.dat          |    10 +-
 external/lgpl3/mpc/dist/tests/print_parameter.c   |    22 +-
 external/lgpl3/mpc/dist/tests/read_data.c         |     5 +-
 external/lgpl3/mpc/dist/tests/rounding.c          |    11 +-
 external/lgpl3/mpc/dist/tests/sqrt.dat            |    18 +-
 external/lgpl3/mpc/dist/tests/tagm.c              |    45 +
 external/lgpl3/mpc/dist/tests/tballs.c            |   216 ++
 external/lgpl3/mpc/dist/tests/tdummy.c            |    28 +
 external/lgpl3/mpc/dist/tests/teta.c              |   149 +
 external/lgpl3/mpc/dist/tests/texceptions.c       |   156 +
 external/lgpl3/mpc/dist/tests/tmul.c              |    31 +
 external/lgpl3/mpc/dist/tests/tpl_mpfr.c          |    17 +-
 external/lgpl3/mpc/dist/tests/tpow_si.c           |    12 +-
 external/lgpl3/mpc/dist/tests/tpow_ui.c           |    18 +-
 external/lgpl3/mpc/dist/tests/tradius.c           |    51 +
 external/lgpl3/mpc/dist/tests/tset.c              |    11 +-
 external/lgpl3/mpc/dist/tools/Makefile.in         |    14 +-
 external/lgpl3/mpc/dist/tools/bench/Makefile.in   |    14 +-
 external/lgpl3/mpc/dist/tools/mpcheck/Makefile.in |    14 +-
 89 files changed, 5985 insertions(+), 3302 deletions(-)

diffs (truncated from 15170 to 300 lines):

diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/AUTHORS
--- a/external/lgpl3/mpc/dist/AUTHORS   Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/AUTHORS   Sun Mar 05 22:35:51 2023 +0000
@@ -3,4 +3,4 @@
    Philippe Théveny
    Paul Zimmermann
 
-Mickaël Gastineau has contributed the file Makefile.vc.
+Mickaël Gastineau has contributed the now defunct file Makefile.vc.
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/INSTALL
--- a/external/lgpl3/mpc/dist/INSTALL   Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/INSTALL   Sun Mar 05 22:35:51 2023 +0000
@@ -1,8 +1,8 @@
 Installation Instructions
 *************************
 
-   Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
-Foundation, Inc.
+   Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free
+Software Foundation, Inc.
 
    Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -225,7 +225,7 @@
 
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 
-   HP-UX 'make' updates targets which have the same time stamps as their
+   HP-UX 'make' updates targets which have the same timestamps as their
 prerequisites, which makes it generally unusable when shipped generated
 files such as 'configure' are involved.  Use GNU 'make' instead.
 
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/Makefile.am
--- a/external/lgpl3/mpc/dist/Makefile.am       Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/Makefile.am       Sun Mar 05 22:35:51 2023 +0000
@@ -1,6 +1,6 @@
 ## Makefile.am -- Process this file with automake to produce Makefile.in
 ##
-## Copyright (C) 2008, 2010, 2011, 2012, 2013, 2014, 2020 INRIA
+## Copyright (C) 2008, 2010, 2011, 2012, 2013, 2014, 2020, 2022 INRIA
 ##
 ## This file is part of GNU MPC.
 ##
@@ -27,7 +27,7 @@
 
 EXTRA_HEADERS = src/mpc-log.h
 include_HEADERS = src/mpc.h @MPC_LOG_H@
-EXTRA_DIST = doc/fdl-1.3.texi src/mpc-log.h Makefile.vc
+EXTRA_DIST = doc/fdl-1.3.texi src/mpc-log.h
 
 bench :
        cd tools/bench && $(MAKE) $(AM_MAKEFLAGS) bench
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/Makefile.in
--- a/external/lgpl3/mpc/dist/Makefile.in       Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/Makefile.in       Sun Mar 05 22:35:51 2023 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.16.2 from Makefile.am.
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2020 Free Software Foundation, Inc.
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -90,8 +90,7 @@
 host_triplet = @host@
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_c_check_flag.m4 \
-       $(top_srcdir)/m4/ax_gcc_option.m4 \
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_gcc_option.m4 \
        $(top_srcdir)/m4/ax_gcc_version.m4 $(top_srcdir)/m4/libtool.m4 \
        $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
        $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
@@ -189,9 +188,6 @@
   unique=`for i in $$list; do \
     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
 DIST_SUBDIRS = $(SUBDIRS)
 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
        $(top_srcdir)/build-aux/ar-lib $(top_srcdir)/build-aux/compile \
@@ -202,8 +198,8 @@
        $(top_srcdir)/build-aux/missing AUTHORS COPYING.LESSER \
        ChangeLog INSTALL NEWS README TODO build-aux/ar-lib \
        build-aux/compile build-aux/config.guess build-aux/config.sub \
-       build-aux/install-sh build-aux/ltmain.sh build-aux/mdate-sh \
-       build-aux/missing build-aux/texinfo.tex
+       build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \
+       build-aux/mdate-sh build-aux/missing build-aux/texinfo.tex
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -242,6 +238,8 @@
 DIST_ARCHIVES = $(distdir).tar.gz
 GZIP_ENV = --best
 DIST_TARGETS = dist-gzip
+# Exists only to be overridden by the user if desired.
+AM_DISTCHECK_DVI_TARGET = dvi
 distuninstallcheck_listfiles = find . -type f -print
 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -260,6 +258,8 @@
 CFLAGS = @CFLAGS@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
+CSCOPE = @CSCOPE@
+CTAGS = @CTAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
@@ -270,8 +270,10 @@
 ECHO_N = @ECHO_N@
 ECHO_T = @ECHO_T@
 EGREP = @EGREP@
+ETAGS = @ETAGS@
 EXEEXT = @EXEEXT@
 FGREP = @FGREP@
+FILECMD = @FILECMD@
 GCC_VERSION = @GCC_VERSION@
 GITVERSION = @GITVERSION@
 GREP = @GREP@
@@ -377,7 +379,7 @@
 SUBDIRS = src tests doc tools
 EXTRA_HEADERS = src/mpc-log.h
 include_HEADERS = src/mpc.h @MPC_LOG_H@
-EXTRA_DIST = doc/fdl-1.3.texi src/mpc-log.h Makefile.vc
+EXTRA_DIST = doc/fdl-1.3.texi src/mpc-log.h
 all: config.h
        $(MAKE) $(AM_MAKEFLAGS) all-recursive
 
@@ -566,7 +568,6 @@
 distclean-tags:
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
        -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
-
 distdir: $(BUILT_SOURCES)
        $(MAKE) $(AM_MAKEFLAGS) distdir-am
 
@@ -713,7 +714,7 @@
            $(DISTCHECK_CONFIGURE_FLAGS) \
            --srcdir=../.. --prefix="$$dc_install_base" \
          && $(MAKE) $(AM_MAKEFLAGS) \
-         && $(MAKE) $(AM_MAKEFLAGS) dvi \
+         && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
          && $(MAKE) $(AM_MAKEFLAGS) check \
          && $(MAKE) $(AM_MAKEFLAGS) install \
          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/NEWS
--- a/external/lgpl3/mpc/dist/NEWS      Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/NEWS      Sun Mar 05 22:35:51 2023 +0000
@@ -1,3 +1,24 @@
+Changes in version 1.3.1, released in December 2022:
+  - Bug fix: It is again possible to include mpc.h without including
+    stdio.h.
+
+Changes in version 1.3.0 ("Ipomoea batatas"), released in December 2022:
+  - New function: mpc_agm
+  - New rounding modes "away from zero", indicated by the letter "A" and
+    corresponding to MPFR_RNDA on the designated real or imaginary part.
+  - New experimental ball arithmetic.
+  - New experimental function: mpc_eta_fund
+  - Bug fixes:
+    - mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
+    - mpc_pow_fr: sign of zero part of result when the base has up to sign
+      the same real and imaginary part, and the exponent is an even
+      positive integer
+    - mpc_fma: the returned 'int' value was incorrect in some cases (indicating
+      whether the rounded real/imaginary parts were smaller/equal/greater
+      than the exact values), but the computed complex value was correct.
+  - Remove the unmaintained Makefile.vc; build files for Visual Studio
+    can be found at https://github.com/BrianGladman/mpc .
+
 Changes in version 1.2.1, released in October 2020:
   - Bug fixes:
     - Fix an incompatibility problem with GMP 6.0 and before.
@@ -15,25 +36,25 @@
   - Fixed issues with MPFR 4.0.0
   - New functions: mpc_cmp_abs, mpc_rootofunity
   - Improved speed for corner cases of mpc_asin, mpc_sin, see
-    http://lists.gforge.inria.fr/pipermail/mpc-discuss/2013-December/001266.html
+    https://sympa.inria.fr/sympa/arc/mpc-discuss/2013-12/msg00001.html
   - Rewrite of the testing framework
   - New mpcbench tool, used with "make bench"
   - Fixed handling of over- and underflows with directed rounding in the
     "other direction" for mpc_cos, mpc_sin, mpc_exp and mpc_pow, see
-    http://lists.gforge.inria.fr/pipermail/mpc-discuss/2015-March/001336.html
+    https://sympa.inria.fr/sympa/arc/mpc-discuss/2015-03/msg00003.html
   - Fixed a bug in mpc_atan(0,y) with |y| near 1, see
-    http://lists.gforge.inria.fr/pipermail/mpc-discuss/2017-March/001404.html
+    https://sympa.inria.fr/sympa/arc/mpc-discuss/2017-03/msg00000.html
 
 Changes in version 1.0.3, released in February 2015:
   - Fixed mpc_pow, see
-    http://lists.gforge.inria.fr/pipermail/mpc-discuss/2014-October/001315.html
+    https://sympa.inria.fr/sympa/arc/mpc-discuss/2014-10/msg00005.html
   - #18257: Switched to libtool 2.4.5.
 
 Changes in version 1.0.2, released in January 2014:
   - Fixed mpc_atan, mpc_atanh for (+-0, +-1), see
     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57994#c7
   - Fixed mpc_log10 for purely imaginary argument, see
-    http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-September/001208.html
+    https://sympa.inria.fr/sympa/arc/mpc-discuss/2012-09/msg00001.html
 
 Changes in version 1.0.1, released in September 2012:
   - Switched to automake 1.11.6, see
@@ -177,7 +198,7 @@
     - mpc_sqrt with directed rounding
 
 
-Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 INRIA
+Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2020, 2022 INRIA
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/README
--- a/external/lgpl3/mpc/dist/README    Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/README    Sun Mar 05 22:35:51 2023 +0000
@@ -1,4 +1,4 @@
-Copyright (C) INRIA 2003, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2018, 2020
+Copyright (C) INRIA 2003, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2018, 2020, 2022
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -24,8 +24,8 @@
 
 1. In the directory of the GNU MPC archive, type
 
-      tar xzf mpc-1.2.1.tar.gz
-      cd mpc-1.2.1
+      tar xzf mpc-1.3.1.tar.gz
+      cd mpc-1.3.1
       ./configure
       make
 
@@ -38,8 +38,7 @@
       make check
 
    If any error occurs, please report it on the mailing list
-   <mpc-discuss%lists.gforge.inria.fr@localhost>, or file a bug at the bug tracker
-   <https://gforge.inria.fr/tracker/?atid=607&group_id=131&func=browse> .
+   <mpc-discuss%inria.fr@localhost>.
 
 3. To install the GNU MPC library, type
 
@@ -60,7 +59,7 @@
    This requires the Texinfo package (version 4.2 at least).
 
 In case of difficulties, please send a description of the problem to
-<mpc-discuss%lists.gforge.inria.fr@localhost>.
+<mpc-discuss%inria.fr@localhost>.
 
 ##############################################################################
 
@@ -88,20 +87,6 @@
 Note for Windows users:
 =======================
 
-There is a special file Makefile.vc for Windows, contributed by Mickaël
-Gastineau. This file works both for the Windows Server 2003 R2 Platform SDK,
-and for the Windows SDK of Vista. To use it, simply replace "make" by
-"nmake /f makefile.vc" in the above instructions:
-
-compilation :
-nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir>
-
-clean :
-nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir> clean
-
-check :
-nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir> check
-
 If you want to compile mpc with mingw in the msys shell, you might need to
 add the following to the configure command (or in your environment):
 
@@ -113,3 +98,7 @@
 CPP="x86_64-w64-mingw32-gcc -E"
 
 (reported by Sisyphus)
+
+A project for Visual Studio is maintained independently by Brian Gladman at
+https://github.com/BrianGladman/mpc
+
diff -r ea1988b072a1 -r 069a1210cca3 external/lgpl3/mpc/dist/TODO
--- a/external/lgpl3/mpc/dist/TODO      Sun Mar 05 22:13:48 2023 +0000
+++ b/external/lgpl3/mpc/dist/TODO      Sun Mar 05 22:35:51 2023 +0000
@@ -1,9 +1,8 @@
-From Andreas Enge 22 July 2016:
-Now that mpfr-3 is the minimum version requirement, support the
-MPFR_RNDA rounding mode.
+From Thomas Henlich on 20 February 2020:
+Implement the cotangent function.
 
 From Joseph Myers 12 Apr 2015:
-http://lists.gforge.inria.fr/pipermail/mpc-discuss/2015-April/001347.html
+https://sympa.inria.fr/sympa/arc/mpc-discuss/2015-04/msg00009.html



Home | Main Index | Thread Index | Old Index