[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Oct 27 15:58:37 CEST 2011


details:   /var/hg/gmp/rev/cde58dab4b92
changeset: 14390:cde58dab4b92
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Oct 27 15:58:27 2011 +0200
description:
(BSWAP_LIMB): Rename variable to avoid BSWAP_LIMB_FETCH clash.

details:   /var/hg/gmp/rev/e198ae588b47
changeset: 14391:e198ae588b47
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Oct 27 15:58:31 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog  |  4 ++++
 gmp-impl.h |  6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r cfe0a56e1f8c -r e198ae588b47 ChangeLog
--- a/ChangeLog	Thu Oct 27 15:48:39 2011 +0200
+++ b/ChangeLog	Thu Oct 27 15:58:31 2011 +0200
@@ -1,5 +1,9 @@
 2011-10-27  Torbjorn Granlund  <tege at gmplib.org>
 
+	From Per Olofsson:
+	* gmp-impl.h (BSWAP_LIMB): Rename variable to avoid BSWAP_LIMB_FETCH
+	clash.
+
 	* mpn/s390_32/esame/mul_basecase.asm: New file.
 
 	* mpn/s390_32/esame/sqr_basecase.asm: New file.
diff -r cfe0a56e1f8c -r e198ae588b47 gmp-impl.h
--- a/gmp-impl.h	Thu Oct 27 15:48:39 2011 +0200
+++ b/gmp-impl.h	Thu Oct 27 15:58:31 2011 +0200
@@ -3303,14 +3303,14 @@
 #define BSWAP_LIMB(dst, src)						\
   do {									\
     mp_limb_t  __bswapl_src = (src);					\
-    mp_limb_t  __dst = 0;						\
+    mp_limb_t  __dstl = 0;						\
     int	       __i;							\
     for (__i = 0; __i < BYTES_PER_MP_LIMB; __i++)			\
       {									\
-	__dst = (__dst << 8) | (__bswapl_src & 0xFF);			\
+	__dstl = (__dstl << 8) | (__bswapl_src & 0xFF);			\
 	__bswapl_src >>= 8;						\
       }									\
-    (dst) = __dst;							\
+    (dst) = __dstl;							\
   } while (0)
 #endif
 


More information about the gmp-commit mailing list