summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--Makefile.vc2
-rw-r--r--NEWS4
-rw-r--r--README.dev2
-rw-r--r--configure.ac11
-rw-r--r--doc/version.texi8
-rw-r--r--src/mpc.h2
-rw-r--r--web/content_applications.php9
-rw-r--r--web/content_documentation.php4
-rw-r--r--web/content_download.php11
-rw-r--r--web/content_home.php31
-rw-r--r--web/content_html.php47
-rw-r--r--web/download/mpc-0.5.2.pdf (renamed from web/download/mpc-0.5.1.pdf)bin177016 -> 179040 bytes
-rw-r--r--web/download/mpc-0.5.2.tar.gzbin0 -> 518391 bytes
-rw-r--r--web/menu.xml10
15 files changed, 94 insertions, 49 deletions
diff --git a/Makefile.am b/Makefile.am
index 2273104..57e1c8b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,4 +2,4 @@
SUBDIRS = src tests doc
include_HEADERS = src/mpc.h
-EXTRA_DIST = tests/tgeneric.c \ No newline at end of file
+EXTRA_DIST = Makefile.vc tests/tgeneric.c
diff --git a/Makefile.vc b/Makefile.vc
index 21f421a..500021b 100644
--- a/Makefile.vc
+++ b/Makefile.vc
@@ -39,7 +39,7 @@ CPP = cl.exe
CC = cl.exe
CDEFAULTFLAGS=/O2 /GR- /MD /nologo /EHs
-VERSION=0.5.1
+VERSION=0.5.2
######################## do not edit below this line ##########################
diff --git a/NEWS b/NEWS
index 85a7dee..590bbce 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,9 @@
-Recent changes:
+Changes in version 0.5.2:
- New macros:
- version number: MPC_VERSION_NUM, MPC_VERSION
- Makefile.vc updated (thanks to Mickael Gastineau)
+ - Compilation on Debian-Gnu-Linux-PowerPC and MacOsX
+ fixed (thanks to Laurent Fousse and Mickael Gastineau)
Changes in version 0.5.1:
- New functions:
diff --git a/README.dev b/README.dev
index 5352609..5156ff0 100644
--- a/README.dev
+++ b/README.dev
@@ -20,7 +20,7 @@ Creating a new release
This updates the date and version number in doc/version.texi and
creates the tarball for distribution.
5) Create an svn tag from inside the svn root:
- svn cp trunk tags/VERSION -m "Tagging release VERSION"
+ svn cp trunk tags/VERSION
6) Update the web page inside svn and on the server.
The html documentation is created with
makeinfo --html --no-split mpc.texi
diff --git a/configure.ac b/configure.ac
index 494ac0c..74a730e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@ MA 02111-1307, USA. */
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT(mpc, 0.5.2-dev, mpc-discuss@lists.gforge.inria.fr)
+AC_INIT(mpc, 0.5.2, mpc-discuss@lists.gforge.inria.fr)
AC_CONFIG_SRCDIR([src/mpc-impl.h])
AC_CONFIG_HEADER([config.h])
@@ -38,7 +38,7 @@ AC_ARG_WITH([mpfr_include],
AC_ARG_WITH([mpfr_lib],
[AC_HELP_STRING([--with-mpfr-lib=DIR],
[MPFR lib directory])],
- [LDFLAGS="-I$withval $LDFLAGS"])
+ [LDFLAGS="-L$withval $LDFLAGS"])
AC_ARG_WITH([mpfr],
[AC_HELP_STRING([--with-mpfr=DIR],
[MPFR install directory])],
@@ -53,7 +53,7 @@ AC_ARG_WITH([gmp_include],
AC_ARG_WITH([gmp_lib],
[AC_HELP_STRING([--with-gmp-lib=DIR],
[GMP lib directory])],
- [LDFLAGS="-I$withval $LDFLAGS"])
+ [LDFLAGS="-L$withval $LDFLAGS"])
AC_ARG_WITH([gmp],
[AC_HELP_STRING([--with-gmp=DIR],
[GMP install directory])],
@@ -83,9 +83,6 @@ AC_PROG_SED
AC_CHECK_LIB([gmp], [__gmpz_init],
[LIBS="-lgmp $LIBS"],
[AC_MSG_ERROR([libgmp not found or uses a different ABI.])])
-#AC_CHECK_LIB([mpfr], [mpfr_init],
-# [LIBS="-lmpfr $LIBS"],
-# [AC_MSG_ERROR([libmpfr not found or uses a different ABI.])])
AC_MSG_CHECKING(for MPFR)
LIBS="-lmpfr $LIBS"
AC_LINK_IFELSE(
@@ -152,7 +149,7 @@ AX_C_CHECK_FLAG(-ansi,,,WARNINGCFLAGS="$WARNINGCFLAGS -ansi",)
AX_C_CHECK_FLAG(-pedantic,,,WARNINGCFLAGS="$WARNINGCFLAGS -pedantic",)
AX_C_CHECK_FLAG(-Wall,,,WARNINGCFLAGS="$WARNINGCFLAGS -Wall",)
AX_C_CHECK_FLAG(-Wextra,,,WARNINGCFLAGS="$WARNINGCFLAGS -Wextra",)
-AX_C_CHECK_FLAG(-Werror,,,WARNINGCFLAGS="$WARNINGCFLAGS -Werror",)
+#AX_C_CHECK_FLAG(-Werror,,,WARNINGCFLAGS="$WARNINGCFLAGS -Werror",)
AC_SUBST(WARNINGCFLAGS)
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile doc/Makefile])
diff --git a/doc/version.texi b/doc/version.texi
index 6e7e677..56866a3 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
-@set UPDATED 27 November 2008
-@set UPDATED-MONTH November 2008
-@set EDITION 0.5.2-dev
-@set VERSION 0.5.2-dev
+@set UPDATED 2 December 2008
+@set UPDATED-MONTH December 2008
+@set EDITION 0.5.2
+@set VERSION 0.5.2
diff --git a/src/mpc.h b/src/mpc.h
index d0932e1..06d70d3 100644
--- a/src/mpc.h
+++ b/src/mpc.h
@@ -29,7 +29,7 @@ MA 02111-1307, USA. */
#define MPC_VERSION_MAJOR 0
#define MPC_VERSION_MINOR 5
#define MPC_VERSION_PATCHLEVEL 2
-#define MPC_VERSION_STRING "0.5.2-dev"
+#define MPC_VERSION_STRING "0.5.2"
/* Macros dealing with MPC VERSION */
#define MPC_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
diff --git a/web/content_applications.php b/web/content_applications.php
index 1a1e318..f9cb8c2 100644
--- a/web/content_applications.php
+++ b/web/content_applications.php
@@ -1,5 +1,11 @@
<ul>
<li>
+<a href="http://www.sagemath.org/">SAGE</a>, a free
+computer algebra system, contains <?php code ("Mpc"); ?> as an
+<a href="http://www.sagemath.org/packages/optional/">optional package</a>
+since <?php code ("Mpc"); ?> version 0.5.
+</li>
+<li>
<a href="http://search.cpan.org/~sisyphus/Math-MPC/">Math::MPC</a>,
a perl wrapper
</li>
@@ -13,9 +19,6 @@ and M. Gastineau at
<a href="http://www.imcce.fr/imcce_en.html">Institut
de Mécanique Céleste et de Calcul des Éphémérides</a>,
uses <?php code ("Mpc"); ?> since version 0.98.66.
-Quadruple precision arithmetic implemented in <?php code ("Trip"); ?> provides
-only 33 decimal digits of precision. The <?php code ("Mpc"); ?> library
-increases the number of digits of precision available to the users.
</li>
<li>
<a href="http://magma.maths.usyd.edu.au/magma/">Magma</a>
diff --git a/web/content_documentation.php b/web/content_documentation.php
index 2add274..cd7464c 100644
--- a/web/content_documentation.php
+++ b/web/content_documentation.php
@@ -1,10 +1,10 @@
-<h2>Manual for version 0.5.1</h2>
+<h2>Manual for version 0.5.2</h2>
<ul>
<li>
<a href="?content=html">html</a>
</li>
<li>
-<a href="download/mpc-0.5.1.pdf">pdf</a>
+<a href="download/mpc-0.5.2.pdf">pdf</a>
</li>
</ul>
diff --git a/web/content_download.php b/web/content_download.php
index 041afdb..7356124 100644
--- a/web/content_download.php
+++ b/web/content_download.php
@@ -15,17 +15,22 @@ version 2.3.1 or higher
</li>
</ul>
+
<h2>Latest version</h2>
-<a href="download/mpc-0.5.1.tar.gz">Version 0.5.1</a> "Aconitum neomontanum"
+<a href="download/mpc-0.5.2.tar.gz">Version 0.5.2</a> "Aconitum neomontanum"
+
<h2>Previous versions</h2>
-<a href="download/mpc-0.5.tar.gz">Version 0.5</a>
+<ul>
+<li><a href="download/mpc-0.5.1.tar.gz">Version 0.5.1</a></li>
+<li><a href="download/mpc-0.5.tar.gz">Version 0.5</a></li>
+</ul>
<h2>Patches</h2>
<p>
The patches are applied as follows:<br/>
-<code>cd mpc-0.5.1</code><br/>
+<code>cd mpc-0.5.2</code><br/>
<code>patch -N -p1 -Z -i path_to_patch_file</code>
</p>
<p>
diff --git a/web/content_home.php b/web/content_home.php
index 968e5c0..c432601 100644
--- a/web/content_home.php
+++ b/web/content_home.php
@@ -21,8 +21,31 @@ under the number IDDN FR 001 060029 000 R P 2003 000 10000.
<h2>News</h2>
<p>
-<a href="?content=download">Version 0.5.1</a>,
-"Aconitum neomontanum", released in November 2008,
+<a href="?content=download">Version 0.5.2</a>,
+"Aconitum neomontanum", released in December 2008,
+comes with the following new features:
+</p>
+<ul>
+<li>
+New macros
+<ul>
+<li>
+Version number: <code>MPC_VERSION</code>,
+<code>MPC_VERSION_NUM</code>
+</li>
+</ul>
+</li>
+<li>
+Updated Makefile.vc (thanks to Mickaël Gastineau)
+</li>
+<li>
+Compilation fixes for Debian-Gnu-Linux-PowerPC and
+MacOsX (thanks to Laurent Fousse and Mickaël Gastineau)
+</li>
+</ul>
+
+<p>
+Version 0.5.1, released in November 2008,
comes with the following new features:
</p>
<ul>
@@ -98,9 +121,9 @@ Export declarations for MSWindows, <code>makefile.vc</code> updated
title = {mpc --- A library for multiprecision complex
arithmetic with exact rounding},
organization = {INRIA},
- edition = {0.5.1},
+ edition = {0.5.2},
year = {2008},
- month = nov,
+ month = dec,
note = {\url{http://www.multiprecision.org/mpc/}}
}
</pre>
diff --git a/web/content_html.php b/web/content_html.php
index cb6745e..677eab8 100644
--- a/web/content_html.php
+++ b/web/content_html.php
@@ -1,8 +1,8 @@
<html lang="en">
<head>
-<title>MPC 0.5.1</title>
+<title>MPC 0.5.2</title>
<meta http-equiv="Content-Type" content="text/html">
-<meta name="description" content="MPC 0.5.1">
+<meta name="description" content="MPC 0.5.2">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="top" href="#Top">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
@@ -38,7 +38,7 @@ into another language, under the above conditions for modified versions.-->
--></style>
</head>
<body>
-<h1 class="settitle">MPC 0.5.1</h1>
+<h1 class="settitle">MPC 0.5.2</h1>
<div class="node">
<p><hr>
<a name="Top"></a>
@@ -51,7 +51,7 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#dir">(dir)</a>
<h2 class="unnumbered">MPC</h2>
<p>This manual documents how to install and use the Multiple Precision
-Complex Library, version 0.5.1
+Complex Library, version 0.5.2
<ul class="menu">
<li><a accesskey="1" href="#Copying">Copying</a>: MPC Copying Conditions (LGPL).
@@ -158,9 +158,9 @@ programs.
<p>Here are the steps needed to install the library on Unix systems:
<ol type=1 start=1>
-<li>&lsquo;<samp><span class="samp">tar xzf mpc-0.5.1.tar.gz</span></samp>&rsquo;
+<li>&lsquo;<samp><span class="samp">tar xzf mpc-0.5.2.tar.gz</span></samp>&rsquo;
- <li>&lsquo;<samp><span class="samp">cd mpc-0.5.1</span></samp>&rsquo;
+ <li>&lsquo;<samp><span class="samp">cd mpc-0.5.2</span></samp>&rsquo;
<li>&lsquo;<samp><span class="samp">./configure</span></samp>&rsquo;
@@ -1014,13 +1014,15 @@ Negative parts are generated when <var>max_size</var> is negative.
</p></blockquote></div>
<div class="defun">
-&mdash; Macro: <b>MPC_VERSION_MAJOR</b><var><a name="index-MPC_005fVERSION_005fMAJOR-103"></a></var><br>
-&mdash; Macro: <b>MPC_VERSION_MINOR</b><var><a name="index-MPC_005fVERSION_005fMINOR-104"></a></var><br>
-&mdash; Macro: <b>MPC_VERSION_PATCHLEVEL</b><var><a name="index-MPC_005fVERSION_005fPATCHLEVEL-105"></a></var><br>
-&mdash; Macro: <b>MPC_VERSION_STRING</b><var><a name="index-MPC_005fVERSION_005fSTRING-106"></a></var><br>
-<blockquote><p><code>MPC_VERSION_MAJOR</code>, <code>MPC_VERSION_MINOR</code> and
+&mdash; Macro: <b>MPC_VERSION</b><var><a name="index-MPC_005fVERSION-103"></a></var><br>
+&mdash; Macro: <b>MPC_VERSION_MAJOR</b><var><a name="index-MPC_005fVERSION_005fMAJOR-104"></a></var><br>
+&mdash; Macro: <b>MPC_VERSION_MINOR</b><var><a name="index-MPC_005fVERSION_005fMINOR-105"></a></var><br>
+&mdash; Macro: <b>MPC_VERSION_PATCHLEVEL</b><var><a name="index-MPC_005fVERSION_005fPATCHLEVEL-106"></a></var><br>
+&mdash; Macro: <b>MPC_VERSION_STRING</b><var><a name="index-MPC_005fVERSION_005fSTRING-107"></a></var><br>
+<blockquote><p><code>MPC_VERSION</code> is the version of MPC as a preprocessing constant.
+<code>MPC_VERSION_MAJOR</code>, <code>MPC_VERSION_MINOR</code> and
<code>MPC_VERSION_PATCHLEVEL</code> are respectively the major, minor and
-patch level of MPFR version, as preprocessing constants.
+patch level of MPC version, as preprocessing constants.
<code>MPC_VERSION_STRING</code> is the version as a string constant, which
can be compared to the result of <code>mpc_get_version</code> to check at
run time the header file and library used match:
@@ -1033,6 +1035,17 @@ dynamically linked with a newer MPC library version (if allowed by the
library versioning system).
</p></blockquote></div>
+<div class="defun">
+&mdash; Macro: long <b>MPC_VERSION_NUM</b> (<var>major, minor, patchlevel</var>)<var><a name="index-MPC_005fVERSION_005fNUM-108"></a></var><br>
+<blockquote><p>Create an integer in the same format as used by <code>MPC_VERSION</code> from the
+given <var>major</var>, <var>minor</var> and <var>patchlevel</var>.
+Here is an example of how to check the MPC version at compile time:
+ <pre class="example"> #if (!defined(MPC_VERSION) || (MPC_VERSION&lt;MPC_VERSION_NUM(2,1,0)))
+ # error "Wrong MPC version."
+ #endif
+</pre>
+ </blockquote></div>
+
<div class="node">
<p><hr>
<a name="Internals"></a>
@@ -1238,9 +1251,11 @@ Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
<li><a href="#index-mpc_005fui_005fsub-61"><code>mpc_ui_sub</code></a>: <a href="#Basic-Arithmetic">Basic Arithmetic</a></li>
<li><a href="#index-mpc_005fui_005fui_005fsub-62"><code>mpc_ui_ui_sub</code></a>: <a href="#Basic-Arithmetic">Basic Arithmetic</a></li>
<li><a href="#index-mpc_005furandom-99"><code>mpc_urandom</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
-<li><a href="#index-MPC_005fVERSION_005fMAJOR-103"><code>MPC_VERSION_MAJOR</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
-<li><a href="#index-MPC_005fVERSION_005fMINOR-104"><code>MPC_VERSION_MINOR</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
-<li><a href="#index-MPC_005fVERSION_005fPATCHLEVEL-105"><code>MPC_VERSION_PATCHLEVEL</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
-<li><a href="#index-MPC_005fVERSION_005fSTRING-106"><code>MPC_VERSION_STRING</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION-103"><code>MPC_VERSION</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION_005fMAJOR-104"><code>MPC_VERSION_MAJOR</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION_005fMINOR-105"><code>MPC_VERSION_MINOR</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION_005fNUM-108"><code>MPC_VERSION_NUM</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION_005fPATCHLEVEL-106"><code>MPC_VERSION_PATCHLEVEL</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
+<li><a href="#index-MPC_005fVERSION_005fSTRING-107"><code>MPC_VERSION_STRING</code></a>: <a href="#Miscellaneous-Complex-Functions">Miscellaneous Complex Functions</a></li>
</ul></body></html>
diff --git a/web/download/mpc-0.5.1.pdf b/web/download/mpc-0.5.2.pdf
index 5ee166e..09177eb 100644
--- a/web/download/mpc-0.5.1.pdf
+++ b/web/download/mpc-0.5.2.pdf
Binary files differ
diff --git a/web/download/mpc-0.5.2.tar.gz b/web/download/mpc-0.5.2.tar.gz
new file mode 100644
index 0000000..2a384f3
--- /dev/null
+++ b/web/download/mpc-0.5.2.tar.gz
Binary files differ
diff --git a/web/menu.xml b/web/menu.xml
index 36fa539..1df35b8 100644
--- a/web/menu.xml
+++ b/web/menu.xml
@@ -4,24 +4,24 @@
<menuItem>
<title>Introduction</title>
<anchor>home</anchor>
-<date>2008-11-18</date>
+<date>2008-12-02</date>
</menuItem>
<menuItem>
<title>Download</title>
<anchor>download</anchor>
-<date>2008-11-18</date>
+<date>2008-12-02</date>
</menuItem>
<menuItem>
<title>Documentation</title>
<anchor>documentation</anchor>
-<date>2008-11-18</date>
+<date>2008-12-02</date>
</menuItem>
<subMenuItem>
<title>Html Documentation</title>
<anchor>html</anchor>
-<date>2008-11-18</date>
+<date>2008-12-02</date>
</subMenuItem>
<menuItem>
@@ -33,7 +33,7 @@
<menuItem>
<title>Applications</title>
<anchor>applications</anchor>
-<date>2008-09-23</date>
+<date>2008-12-02</date>
</menuItem>
</menu>