diff options
author | Jason A. Donenfeld | 2022-04-20 15:27:29 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2022-04-20 15:42:53 +0200 |
commit | 31ec481baf106cf9c6d8f34ae6a55ab1738dea6f (patch) | |
tree | 1e7b88e2a22092d635a7c68e03b7b87da5205f57 /coreutils/nice.c | |
parent | 453857899616acf1c77d0d02a4c2989b2cf5f1eb (diff) | |
download | busybox-31ec481baf106cf9c6d8f34ae6a55ab1738dea6f.zip busybox-31ec481baf106cf9c6d8f34ae6a55ab1738dea6f.tar.gz |
seedrng: hoist bb_strtoul out of min/max
- Hoist bb_strtoul out of min/max to prevent quadruple evaluation.
- Don't use separate variables for boottime/realtime.
- Make use of ENABLE_FEATURE_CLEAN_UP where appropriate.
- Order hash initialization after lock taking per Bernhard's taste.
- Add comment description of theory of operation.
function old new delta
seed_from_file_if_exists 533 456 -77
seedrng_main 1218 1086 -132
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-209) Total: -209 bytes
text data bss dec hex filename
976445 4227 1848 982520 efdf8 busybox_old
976236 4227 1848 982311 efd27 busybox_unstripped
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'coreutils/nice.c')
0 files changed, 0 insertions, 0 deletions