busybox/coreutils
Denys Vlasenko 2075553a1b libbb: add bit counting function, use where appropriate
Although "naive" counting function is not too slow and is smaller,
using it on e.g. each of 1024 words of CPU mask feels wrong.

function                                             old     new   delta
bb_popcnt_32                                           -      52     +52
get_prefix                                           323     321      -2
nproc_main                                           206     199      -7
d4_run_script                                        739     731      -8
ipcalc_main                                          533     507     -26
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/4 up/down: 52/-43)              Total: 9 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-05-31 16:03:23 +02:00
..
libcoreutils whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
Config.src config system: move some options closer to relevalnt tool subdirectories 2021-10-12 13:23:29 +02:00
Kbuild.src shells: make hush test optional, rename ASH_BUILTIN_foo -> ASH_foo 2017-01-10 15:13:30 +01:00
basename.c Update applet size estimates 2023-07-10 17:25:21 +02:00
cat.c Update applet size estimates 2023-07-10 17:25:21 +02:00
chgrp.c *: --help tweaks 2021-06-14 20:47:20 +02:00
chmod.c libbb: eliminate a static data array in bb_mode_string() 2021-09-17 01:18:31 +02:00
chown.c *: --help tweaks 2021-06-14 20:47:20 +02:00
chroot.c Update applet size estimates 2023-07-10 17:25:21 +02:00
cksum.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
comm.c Update applet size estimates 2023-07-10 17:25:21 +02:00
cp.c cp: fix build failure with long options disabled 2021-08-15 18:26:56 +02:00
cut.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
date.c Update applet size estimates 2023-07-10 17:25:21 +02:00
dd.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
df.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
dirname.c Update applet size estimates 2023-07-10 17:25:21 +02:00
dos2unix.c Update applet size estimates 2023-07-10 17:25:21 +02:00
du.c Update applet size estimates 2023-07-10 17:25:21 +02:00
echo.c Update applet size estimates 2023-07-10 17:25:21 +02:00
env.c Update applet size estimates 2023-07-10 17:25:21 +02:00
expand.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
expr.c Update applet size estimates 2023-07-10 17:25:21 +02:00
factor.c Update applet size estimates 2023-07-10 17:25:21 +02:00
false.c Update applet size estimates 2023-07-10 17:25:21 +02:00
fold.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
head.c Update applet size estimates 2023-07-10 17:25:21 +02:00
hostid.c Update applet size estimates 2023-07-10 17:25:21 +02:00
id.c Update applet size estimates 2023-07-10 17:25:21 +02:00
id_test.sh id: coreutils compat by Tito + test script 2008-10-29 00:27:31 +00:00
install.c install: Fix chown resetting suid/sgid bits from chmod 2023-10-02 14:26:27 +02:00
link.c Update applet size estimates 2023-07-10 17:25:21 +02:00
ln.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
logname.c Update applet size estimates 2023-07-10 17:25:21 +02:00
ls.c ls: do not truncate username/groupname to 8 chars 2024-02-25 01:06:30 +01:00
md5_sha1_sum.c Update applet size estimates 2023-07-10 17:25:21 +02:00
mkdir.c Update applet size estimates 2023-07-10 17:25:21 +02:00
mkfifo.c Update applet size estimates 2023-07-10 17:25:21 +02:00
mknod.c Update applet size estimates 2023-07-10 17:25:21 +02:00
mktemp.c Update applet size estimates 2023-07-10 17:25:21 +02:00
mv.c mv: fix error in !VERBOSE configs 2023-01-02 17:04:44 +01:00
nice.c Update applet size estimates 2023-07-10 17:25:21 +02:00
nl.c Update applet size estimates 2023-07-10 17:25:21 +02:00
nohup.c Update applet size estimates 2023-07-10 17:25:21 +02:00
nproc.c libbb: add bit counting function, use where appropriate 2024-05-31 16:03:23 +02:00
od.c od: -l,I,L indeed depend on sizeof(long), fix this 2023-05-26 20:17:04 +02:00
od_bloaty.c od: -l,I,L indeed depend on sizeof(long), fix this 2023-05-26 20:17:04 +02:00
paste.c Update applet size estimates 2023-07-10 17:25:21 +02:00
printenv.c Update applet size estimates 2023-07-10 17:25:21 +02:00
printf.c sleep: fix "sleep -- ARGS" 2023-10-02 13:56:32 +02:00
pwd.c Update applet size estimates 2023-07-10 17:25:21 +02:00
readlink.c Update applet size estimates 2023-07-10 17:25:21 +02:00
realpath.c Update applet size estimates 2023-07-10 17:25:21 +02:00
rm.c Update applet size estimates 2023-07-10 17:25:21 +02:00
rmdir.c Update applet size estimates 2023-07-10 17:25:21 +02:00
seq.c Update applet size estimates 2023-07-10 17:25:21 +02:00
shred.c Update applet size estimates 2023-07-10 17:25:21 +02:00
shuf.c Update applet size estimates 2023-07-10 17:25:21 +02:00
sleep.c sleep: Update doc 2023-11-07 16:59:09 +01:00
sort.c Update applet size estimates 2023-07-10 17:25:21 +02:00
split.c Update applet size estimates 2023-07-10 17:25:21 +02:00
stat.c libbb: eliminate a static data array in bb_mode_string() 2021-09-17 01:18:31 +02:00
stty.c Update applet size estimates 2023-07-10 17:25:21 +02:00
sum.c Update applet size estimates 2023-07-10 17:25:21 +02:00
sync.c Update applet size estimates 2023-07-10 17:25:21 +02:00
tac.c Update applet size estimates 2023-07-10 17:25:21 +02:00
tail.c Update applet size estimates 2023-07-10 17:25:21 +02:00
tee.c Update applet size estimates 2023-07-10 17:25:21 +02:00
test.c Update applet size estimates 2023-07-10 17:25:21 +02:00
test_ptr_hack.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
timeout.c Update applet size estimates 2023-07-10 17:25:21 +02:00
touch.c introduce and use exitcode_t 2023-07-17 17:29:36 +02:00
tr.c Update applet size estimates 2023-07-10 17:25:21 +02:00
true.c Update applet size estimates 2023-07-10 17:25:21 +02:00
truncate.c Update applet size estimates 2023-07-10 17:25:21 +02:00
tsort.c tsort: avoid use-after-free 2023-08-31 09:41:53 +02:00
tty.c Update applet size estimates 2023-07-10 17:25:21 +02:00
uname.c Update applet size estimates 2023-07-10 17:25:21 +02:00
uniq.c Update applet size estimates 2023-07-10 17:25:21 +02:00
unlink.c Update applet size estimates 2023-07-10 17:25:21 +02:00
usleep.c Update applet size estimates 2023-07-10 17:25:21 +02:00
uudecode.c Update applet size estimates 2023-07-10 17:25:21 +02:00
uuencode.c Update applet size estimates 2023-07-10 17:25:21 +02:00
wc.c Update applet size estimates 2023-07-10 17:25:21 +02:00
who.c Update applet size estimates 2023-07-10 17:25:21 +02:00
whoami.c Update applet size estimates 2023-07-10 17:25:21 +02:00
yes.c Update applet size estimates 2023-07-10 17:25:21 +02:00