[Gmp-commit] /home/hgfiles/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sat Jan 16 19:34:16 CET 2010


details:   /home/hgfiles/gmp/rev/c0d5b8d2f24f
changeset: 13377:c0d5b8d2f24f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Jan 15 18:58:10 2010 +0100
description:
(GMP_LIMB_BYTES): New define.

details:   /home/hgfiles/gmp/rev/d86f0acf72dd
changeset: 13378:d86f0acf72dd
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Jan 15 18:59:33 2010 +0100
description:
(__GMP_EXTERN_INLINE): Remove "extern" for newer Sun C

details:   /home/hgfiles/gmp/rev/642ccb432e49
changeset: 13379:642ccb432e49
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 16 11:08:27 2010 +0100
description:
Fix typo in last change.

diffstat:

 ChangeLog            |  8 ++++++++
 gmp-h.in             |  6 +++---
 gmp-impl.h           |  1 +
 mpn/x86_64/darwin.m4 |  2 +-
 4 files changed, 13 insertions(+), 4 deletions(-)

diffs (60 lines):

diff -r 5026e22e74c3 -r 642ccb432e49 ChangeLog
--- a/ChangeLog	Fri Jan 15 12:28:45 2010 +0100
+++ b/ChangeLog	Sat Jan 16 11:08:27 2010 +0100
@@ -1,5 +1,13 @@
+2010-01-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/x86_64/darwin.m4: Fix typo in last change.
+
 2010-01-15  Torbjorn Granlund  <tege at gmplib.org>
 
+	* gmp-h.in (__GMP_EXTERN_INLINE): Remove "extern" for newer Sun C.
+
+	* gmp-impl.h (GMP_LIMB_BYTES): New define.
+
 	* mpn/x86_64/darwin.m4 (LEA): New define.
 
 	* mpn/x86/invert_limb.asm (approx_tab): Use DEF_OBJECT.
diff -r 5026e22e74c3 -r 642ccb432e49 gmp-h.in
--- a/gmp-h.in	Fri Jan 15 12:28:45 2010 +0100
+++ b/gmp-h.in	Sat Jan 16 11:08:27 2010 +0100
@@ -460,13 +460,13 @@
 #define __GMP_EXTERN_INLINE  __inline
 #endif
 
-/* Recent enough Sun C compilers accept "extern inline" */
+/* Recent enough Sun C compilers want "inline" */
 #if defined (__SUNPRO_C) && __SUNPRO_C >= 0x560 \
   && ! defined (__GMP_EXTERN_INLINE)
-#define __GMP_EXTERN_INLINE  extern inline
+#define __GMP_EXTERN_INLINE  inline
 #endif
 
-/* Somewhat older Sun C compilers accept "static inline" */
+/* Somewhat older Sun C compilers want "static inline" */
 #if defined (__SUNPRO_C) && __SUNPRO_C >= 0x540 \
   && ! defined (__GMP_EXTERN_INLINE)
 #define __GMP_EXTERN_INLINE  static inline
diff -r 5026e22e74c3 -r 642ccb432e49 gmp-impl.h
--- a/gmp-impl.h	Fri Jan 15 12:28:45 2010 +0100
+++ b/gmp-impl.h	Sat Jan 16 11:08:27 2010 +0100
@@ -175,6 +175,7 @@
 #ifndef BYTES_PER_MP_LIMB
 #define BYTES_PER_MP_LIMB  SIZEOF_MP_LIMB_T
 #endif
+#define GMP_LIMB_BYTES  BYTES_PER_MP_LIMB
 #ifndef GMP_LIMB_BITS
 #define GMP_LIMB_BITS  (8 * SIZEOF_MP_LIMB_T)
 #endif
diff -r 5026e22e74c3 -r 642ccb432e49 mpn/x86_64/darwin.m4
--- a/mpn/x86_64/darwin.m4	Fri Jan 15 12:28:45 2010 +0100
+++ b/mpn/x86_64/darwin.m4	Sat Jan 16 11:08:27 2010 +0100
@@ -19,7 +19,7 @@
 define(`DARWIN')
 
 define(`LEA',`
-	mov	$1(%rip), $2
+	lea	$1(%rip), $2
 ')
 
 dnl  Usage: CALL(funcname)


More information about the gmp-commit mailing list