summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2017-02-28 14:35:40 +0100
committerTorbjorn Granlund <tg@gmplib.org>2017-02-28 14:35:40 +0100
commitdeb2deea6476f6d38c502aee45011bdfcc4fab61 (patch)
treecea67ad44608f6c92c9b2ca8510a929f7a1557c8 /longlong.h
parent6344720297e3d7306b9e6a446248ceba914a2f37 (diff)
downloadgmp-deb2deea6476f6d38c502aee45011bdfcc4fab61.tar.gz
Fix syntax error of last change.
Make arm32 constant range more conservative.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/longlong.h b/longlong.h
index 677ba30c4..d53709ef0 100644
--- a/longlong.h
+++ b/longlong.h
@@ -441,7 +441,7 @@ long __MPN(count_leading_zeros) (UDItype);
&& 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 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
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 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
} 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)), \