summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2017-02-27 17:48:02 +0100
committerTorbjorn Granlund <tg@gmplib.org>2017-02-27 17:48:02 +0100
commitdb2d1a7bf1a3f2d9c9f0dde245b2938b2ddcf708 (patch)
tree443ea89d26cb94c23fc91acc4a2b77b794d3a864 /longlong.h
parent9abf3eaf1c69bf10ee828a5ae30eb1a59907d40d (diff)
downloadgmp-db2d1a7bf1a3f2d9c9f0dde245b2938b2ddcf708.tar.gz
(arm32/arm64): Remove useless comparison to 0 introduced in last change (spotted by Marco).
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 03f4fe42f..677ba30c4 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) && (bl) < 0 && (-(USItype) (bl) < 0x1000)) \
+ if (__builtin_constant_p (bl) && -(USItype)(bl) < 0x1000)) \
__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) && (bl) < 0 && (-(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) && (bl) < 0 && (-(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)), \