From bef17132175945a121992e3d13f0cc78ae722b1b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 10 Apr 2017 00:28:26 +0200 Subject: [PATCH] factor: a bit more simple isqrt function old new delta isqrt_odd 87 80 -7 Signed-off-by: Denys Vlasenko --- coreutils/factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreutils/factor.c b/coreutils/factor.c index 48833e103..8ca3de71a 100644 --- a/coreutils/factor.c +++ b/coreutils/factor.c @@ -62,7 +62,7 @@ static inline half_t isqrt(wide_t N) */ x = HALF_MAX; mask_2bits = TOPMOST_WIDE_BIT | (TOPMOST_WIDE_BIT >> 1); - while (mask_2bits && !(N & mask_2bits)) { + while (!(N & mask_2bits)) { x >>= 1; mask_2bits >>= 2; }