From db2d1a7bf1a3f2d9c9f0dde245b2938b2ddcf708 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Mon, 27 Feb 2017 17:48:02 +0100 Subject: (arm32/arm64): Remove useless comparison to 0 introduced in last change (spotted by Marco). --- longlong.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'longlong.h') 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)), \ -- cgit v1.2.1