diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-07 00:43:59 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-07 00:43:59 +0100 |
commit | 711e20ecb85d13f98ba3e2bdcb344ee7534829c4 (patch) | |
tree | 170fa55e39133e3ba7182fa56d1643e25b55010a /libbb/Config.src | |
parent | a93668cc4277b14eaff07fcfdef9693c990ec824 (diff) | |
download | busybox-w32-711e20ecb85d13f98ba3e2bdcb344ee7534829c4.tar.gz busybox-w32-711e20ecb85d13f98ba3e2bdcb344ee7534829c4.tar.bz2 busybox-w32-711e20ecb85d13f98ba3e2bdcb344ee7534829c4.zip |
libbb/sha1: optional x86-64 hardware accelerates hashing
function old new delta
sha1_process_block64_shaNI - 510 +510
sha1_begin 52 107 +55
.rodata 108285 108301 +16
static.shaNI - 1 +1
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 2/0 up/down: 582/0) Total: 582 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r-- | libbb/Config.src | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src index c80bee286..708d3b0c8 100644 --- a/libbb/Config.src +++ b/libbb/Config.src | |||
@@ -63,6 +63,13 @@ config SHA1_SMALL | |||
63 | 1 224 229 654 732 | 63 | 1 224 229 654 732 |
64 | 2,3 200 195 358 380 | 64 | 2,3 200 195 358 380 |
65 | 65 | ||
66 | config SHA1_HWACCEL | ||
67 | bool "SHA1: Use hardware accelerated instructions if possible" | ||
68 | default y | ||
69 | help | ||
70 | On x86, this adds ~590 bytes of code. Throughput | ||
71 | is about twice as fast as fully-unrolled generic code. | ||
72 | |||
66 | config SHA3_SMALL | 73 | config SHA3_SMALL |
67 | int "SHA3: Trade bytes for speed (0:fast, 1:slow)" | 74 | int "SHA3: Trade bytes for speed (0:fast, 1:slow)" |
68 | default 1 # all "fast or small" options default to small | 75 | default 1 # all "fast or small" options default to small |