[Gmp-commit] /var/hg/gmp: Fix syntax error of last change.

mercurial at gmplib.org mercurial at gmplib.org
Tue Feb 28 13:35:50 UTC 2017


details:   /var/hg/gmp/rev/043088c95083
changeset: 17317:043088c95083
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Tue Feb 28 14:35:40 2017 +0100
description:
Fix syntax error of last change.
Make arm32 constant range more conservative.

diffstat:

 longlong.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 86439a912005 -r 043088c95083 longlong.h
--- a/longlong.h	Mon Feb 27 17:48:57 2017 +0100
+++ b/longlong.h	Tue Feb 28 14:35:40 2017 +0100
@@ -441,7 +441,7 @@
     && W_TYPE_SIZE == 32
 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
   do {									\
-    if (__builtin_constant_p (bl) && -(USItype)(bl) < 0x1000))		\
+    if (__builtin_constant_p (bl) && -(USItype)(bl) < 0x100)		\
       __asm__ ("subs\t%1, %4, %5\n\tadc\t%0, %2, %3"			\
 	   : "=r" (sh), "=&r" (sl)					\
 	       : "r" (ah), "rI" (bh),					\
@@ -552,7 +552,7 @@
    ADDS and SUBS, since they set carry in the same way.  */
 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
   do {									\
-    if (__builtin_constant_p (bl) && (-(UDItype)(bl) < 0x1000))		\
+    if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x1000)		\
       __asm__ ("subs\t%1, %x4, %5\n\tadc\t%0, %x2, %x3"			\
 	       : "=r" (sh), "=&r" (sl)					\
 	       : "rZ" ((UDItype)(ah)), "rZ" ((UDItype)(bh)),		\
@@ -565,7 +565,7 @@
   } while (0)
 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
   do {									\
-    if (__builtin_constant_p (bl) && (-(UDItype)(bl) < 0x1000))		\
+    if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x1000)		\
       __asm__ ("adds\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3"			\
 	       : "=r,r" (sh), "=&r,&r" (sl)				\
 	       : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)),	\


More information about the gmp-commit mailing list