From e33bd4aaa2d6558fc1b008cd2e3bcc5c4f392be2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 4 Feb 2026 19:41:41 +0100 Subject: libbb: use narrow isqrt() when 64-bit one is not needed (only "factor" uses it) function old new delta isqrt_ull - 84 +84 create_J 1809 1808 -1 isqrt 106 38 -68 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 84/-69) Total: 15 bytes Signed-off-by: Denys Vlasenko --- coreutils/factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') diff --git a/coreutils/factor.c b/coreutils/factor.c index 90e9ed761..4df523f28 100644 --- a/coreutils/factor.c +++ b/coreutils/factor.c @@ -136,7 +136,7 @@ static void factorize(wide_t N); static half_t isqrt_odd(wide_t N) { - half_t s = isqrt(N); + half_t s = isqrt_ull(N); /* s^2 is <= N, (s+1)^2 > N */ /* If s^2 in fact is EQUAL to N, it's very lucky. -- cgit v1.2.3-55-g6feb