aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-02-04 19:41:41 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-02-04 19:47:11 +0100
commite33bd4aaa2d6558fc1b008cd2e3bcc5c4f392be2 (patch)
treed58b61aa9d6a023e8a19fe7fa7dc49a39a209a75 /coreutils
parentcdcb4ce314531bfea23b844be7df28ab8c0818da (diff)
downloadbusybox-w32-e33bd4aaa2d6558fc1b008cd2e3bcc5c4f392be2.tar.gz
busybox-w32-e33bd4aaa2d6558fc1b008cd2e3bcc5c4f392be2.tar.bz2
busybox-w32-e33bd4aaa2d6558fc1b008cd2e3bcc5c4f392be2.zip
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 <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/factor.c2
1 files changed, 1 insertions, 1 deletions
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);
136 136
137static half_t isqrt_odd(wide_t N) 137static half_t isqrt_odd(wide_t N)
138{ 138{
139 half_t s = isqrt(N); 139 half_t s = isqrt_ull(N);
140 /* s^2 is <= N, (s+1)^2 > N */ 140 /* s^2 is <= N, (s+1)^2 > N */
141 141
142 /* If s^2 in fact is EQUAL to N, it's very lucky. 142 /* If s^2 in fact is EQUAL to N, it's very lucky.