aboutsummaryrefslogtreecommitdiff
path: root/libbb/Config.src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-12-30 13:07:12 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-12-30 13:17:16 +0100
commit25aadc893d21b35f7d34a9d1edc843632e7abd8f (patch)
treef8d2d860f06eeccb254e071e39213bc2a3f723ef /libbb/Config.src
parent9173c9cce48dc4c867fb06bb72e8c762740c5c86 (diff)
downloadbusybox-w32-25aadc893d21b35f7d34a9d1edc843632e7abd8f.tar.gz
busybox-w32-25aadc893d21b35f7d34a9d1edc843632e7abd8f.tar.bz2
busybox-w32-25aadc893d21b35f7d34a9d1edc843632e7abd8f.zip
libbb/sha1: add config-selectable fully unrolled version, closes 14391
function old new delta sha1_process_block64 364 4167 +3803 static.rconsts 16 - -16 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 3803/-16) Total: 3787 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r--libbb/Config.src25
1 files changed, 18 insertions, 7 deletions
diff --git a/libbb/Config.src b/libbb/Config.src
index 24b31fad9..13188ef03 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -42,21 +42,32 @@ config MD5_SMALL
42 default 1 # all "fast or small" options default to small 42 default 1 # all "fast or small" options default to small
43 range 0 3 43 range 0 3
44 help 44 help
45 Trade binary size versus speed for the md5sum algorithm. 45 Trade binary size versus speed for the md5 algorithm.
46 Approximate values running uClibc and hashing 46 Approximate values running uClibc and hashing
47 linux-2.4.4.tar.bz2 were: 47 linux-2.4.4.tar.bz2 were:
48 value user times (sec) text size (386) 48 value user times (sec) text size (386)
49 0 (fastest) 1.1 6144 49 0 (fastest) 1.1 6144
50 1 1.4 5392 50 1 1.4 5392
51 2 3.0 5088 51 2 3.0 5088
52 3 (smallest) 5.1 4912 52 3 (smallest) 5.1 4912
53
54config SHA1_SMALL
55 int "SHA1: Trade bytes for speed (0:fast, 3:slow)"
56 default 3 # all "fast or small" options default to small
57 range 0 3
58 help
59 Trade binary size versus speed for the sha1 algorithm.
60 throughput MB/s size of sha1_process_block64
61 value 486 x86-64 486 x86-64
62 0 339 374 4149 4167
63 1,2,3 200 195 358 380
53 64
54config SHA3_SMALL 65config SHA3_SMALL
55 int "SHA3: Trade bytes for speed (0:fast, 1:slow)" 66 int "SHA3: Trade bytes for speed (0:fast, 1:slow)"
56 default 1 # all "fast or small" options default to small 67 default 1 # all "fast or small" options default to small
57 range 0 1 68 range 0 1
58 help 69 help
59 Trade binary size versus speed for the sha3sum algorithm. 70 Trade binary size versus speed for the sha3 algorithm.
60 SHA3_SMALL=0 compared to SHA3_SMALL=1 (approximate): 71 SHA3_SMALL=0 compared to SHA3_SMALL=1 (approximate):
61 64-bit x86: +270 bytes of code, 45% faster 72 64-bit x86: +270 bytes of code, 45% faster
62 32-bit x86: +450 bytes of code, 75% faster 73 32-bit x86: +450 bytes of code, 75% faster