[Gmp-commit] /home/hgfiles/gmp-4.3: Various fixes.

mercurial at gmplib.org mercurial at gmplib.org
Wed Dec 16 21:05:26 CET 2009


details:   /home/hgfiles/gmp-4.3/rev/8563376cb2ff
changeset: 12529:8563376cb2ff
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Dec 16 21:05:21 2009 +0100
description:
Various fixes.

diffstat:

 ChangeLog                |  13 +++++++++++++
 acinclude.m4             |  16 ++++++++--------
 mpn/generic/toom32_mul.c |   2 +-
 mpn/generic/toom42_mul.c |   2 +-
 mpn/generic/toom53_mul.c |   2 +-
 mpn/generic/toom62_mul.c |   2 +-
 6 files changed, 25 insertions(+), 12 deletions(-)

diffs (160 lines):

diff -r 49c5f72d271a -r 8563376cb2ff ChangeLog
--- a/ChangeLog	Wed Dec 16 16:59:15 2009 +0100
+++ b/ChangeLog	Wed Dec 16 21:05:21 2009 +0100
@@ -10,6 +10,11 @@
 
 	* mpn/generic/gcdext_subdiv_step.c: Get an ASSERT right.
 
+2009-12-03  Yann Droneaud  <yann at droneaud.fr>
+
+	* acinclude.m4 ([long long reliability test 1]): Add a "static" for C99
+	inline semantics compatibility.
+
 2009-12-03  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/generic/gcdext_lehmer.c (mpn_gcdext_lehmer_n): Handle v == 0
@@ -35,6 +40,10 @@
 	* mpn/generic/gcdext_1.c (mpn_gcdext_1): Use Euclid's algorithm,
 	and return signed cofactors.
 
+2009-11-09  Torbjorn Granlund  <tege at gmplib.org>
+
+	* acinclude.m4 (GMP_C_FOR_BUILD_ANSI): Avoid poor quoting.
+
 2009-10-23  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/generic/get_d.c: Fix code handling denorms for 64-bit machines.
@@ -80,6 +89,10 @@
 
 	* Makefile.am (dist-hook): Check library version consistency.
 
+2009-05-24  Torbjorn Granlund  <tege at gmplib.org>
+
+	* acinclude.m4 (GMP_ASM_LSYM_PREFIX): Try "$L" too, before "$".
+
 2009-05-12  Torbjorn Granlund  <tege at gmplib.org>
 
 	* Version 4.3.1 released.
diff -r 49c5f72d271a -r 8563376cb2ff acinclude.m4
--- a/acinclude.m4	Wed Dec 16 16:59:15 2009 +0100
+++ b/acinclude.m4	Wed Dec 16 21:05:21 2009 +0100
@@ -1,7 +1,7 @@
 dnl  GMP specific autoconf macros
 
 
-dnl  Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
+dnl  Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software
 dnl  Foundation, Inc.
 dnl
 dnl  This file is part of the GNU MP Library.
@@ -68,7 +68,7 @@
 
 dnl  GMP_REMOVE_FROM_LIST(listvar,item)
 dnl  ----------------------------------
-dnl  Emit code to remove any occurance of ITEM from $LISTVAR.  ITEM can be a
+dnl  Emit code to remove any occurrence of ITEM from $LISTVAR.  ITEM can be a
 dnl  shell expression like $foo if desired.
 
 define(GMP_REMOVE_FROM_LIST,
@@ -189,7 +189,7 @@
 dnl  GMP_COMPARE_GE(A1,B1, A2,B2, ...)
 dnl  ---------------------------------
 dnl  Compare two version numbers A1.A2.etc and B1.B2.etc.  Set
-dnl  $gmp_compare_ge to yes or no accoring to the result.  The A parts
+dnl  $gmp_compare_ge to yes or no according to the result.  The A parts
 dnl  should be variables, the B parts fixed numbers.  As many parts as
 dnl  desired can be included.  An empty string in an A part is taken to be
 dnl  zero, the B parts should be non-empty and non-zero.
@@ -252,7 +252,7 @@
 dnl  file rules.  This doesn't get used by the piecewise linking, so we
 dnl  leave it at the default "cru".
 dnl
-dnl  FIXME: Libtool 1.5.2 has its own arrangments for "cq", but that version
+dnl  FIXME: Libtool 1.5.2 has its own arrangements for "cq", but that version
 dnl  is broken in other ways.  When we can upgrade, remove the forcible
 dnl  AR_FLAGS=cq.
 
@@ -590,7 +590,7 @@
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
-__inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
+static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
@@ -1811,7 +1811,7 @@
 dnl  have to use it to fill something, hence the .byte in the test.  It's
 dnl  the second .align which provokes the error or warning.
 dnl
-dnl  The warning from solaris 2.8 is supressed to stop anyone worrying that
+dnl  The warning from solaris 2.8 is suppressed to stop anyone worrying that
 dnl  something might be wrong.
 
 AC_DEFUN([GMP_ASM_ALIGN_FILL_0x90],
@@ -2184,7 +2184,7 @@
 AC_CACHE_CHECK([for assembler local label prefix],
                gmp_cv_asm_lsym_prefix,
 [gmp_tmp_pre_appears=yes
-for gmp_tmp_pre in L .L $ L$; do
+for gmp_tmp_pre in L .L $L $ L$; do
   echo "Trying $gmp_tmp_pre" >&AC_FD_CC
   GMP_TRY_ASSEMBLE(
 [	$gmp_cv_asm_text
@@ -3807,7 +3807,7 @@
                gmp_cv_c_for_build_ansi,
 [cat >conftest.c <<EOF
 int
-main (int argc, char *argv[])
+main (int argc, char **argv)
 {
   exit(0);
 }
diff -r 49c5f72d271a -r 8563376cb2ff mpn/generic/toom32_mul.c
--- a/mpn/generic/toom32_mul.c	Wed Dec 16 16:59:15 2009 +0100
+++ b/mpn/generic/toom32_mul.c	Wed Dec 16 21:05:21 2009 +0100
@@ -3,7 +3,7 @@
 
    Contributed to the GNU project by Torbjorn Granlund.
 
-   The idea of applying toom to unbalanced multiplication is due to by Marco
+   The idea of applying toom to unbalanced multiplication is due to Marco
    Bodrato and Alberto Zanoni.
 
    THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE.  IT IS ONLY
diff -r 49c5f72d271a -r 8563376cb2ff mpn/generic/toom42_mul.c
--- a/mpn/generic/toom42_mul.c	Wed Dec 16 16:59:15 2009 +0100
+++ b/mpn/generic/toom42_mul.c	Wed Dec 16 21:05:21 2009 +0100
@@ -4,7 +4,7 @@
    Contributed to the GNU project by Torbjorn Granlund.
    Additional improvements by Marco Bodrato.
 
-   The idea of applying toom to unbalanced multiplication is due to by Marco
+   The idea of applying toom to unbalanced multiplication is due to Marco
    Bodrato and Alberto Zanoni.
 
    THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE.  IT IS ONLY
diff -r 49c5f72d271a -r 8563376cb2ff mpn/generic/toom53_mul.c
--- a/mpn/generic/toom53_mul.c	Wed Dec 16 16:59:15 2009 +0100
+++ b/mpn/generic/toom53_mul.c	Wed Dec 16 21:05:21 2009 +0100
@@ -3,7 +3,7 @@
 
    Contributed to the GNU project by Torbjorn Granlund and Marco Bodrato.
 
-   The idea of applying toom to unbalanced multiplication is due to by Marco
+   The idea of applying toom to unbalanced multiplication is due to Marco
    Bodrato and Alberto Zanoni.
 
    THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE.  IT IS ONLY
diff -r 49c5f72d271a -r 8563376cb2ff mpn/generic/toom62_mul.c
--- a/mpn/generic/toom62_mul.c	Wed Dec 16 16:59:15 2009 +0100
+++ b/mpn/generic/toom62_mul.c	Wed Dec 16 21:05:21 2009 +0100
@@ -3,7 +3,7 @@
 
    Contributed to the GNU project by Torbjorn Granlund and Marco Bodrato.
 
-   The idea of applying toom to unbalanced multiplication is due to by Marco
+   The idea of applying toom to unbalanced multiplication is due to Marco
    Bodrato and Alberto Zanoni.
 
    THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE.  IT IS ONLY


More information about the gmp-commit mailing list