diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-02-08 15:34:02 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-02-08 15:34:02 +0100 |
commit | eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede (patch) | |
tree | 036c4cf2bebabfe4ff5a738529db3604c8f00ee7 /libbb/hash_md5_sha_x86-64_shaNI.S | |
parent | eb52e7fa522d829fb400461ca4c808ee5c1d6428 (diff) | |
download | busybox-w32-eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede.tar.gz busybox-w32-eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede.tar.bz2 busybox-w32-eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede.zip |
libbb/sha1: shrink x86 hardware accelerated hashing (32-bit)
function old new delta
sha1_process_block64_shaNI 511 507 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | libbb/hash_md5_sha_x86-64_shaNI.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/hash_md5_sha_x86-64_shaNI.S b/libbb/hash_md5_sha_x86-64_shaNI.S index fc2ca92e8..b32029360 100644 --- a/libbb/hash_md5_sha_x86-64_shaNI.S +++ b/libbb/hash_md5_sha_x86-64_shaNI.S | |||
@@ -36,9 +36,8 @@ | |||
36 | .balign 8 # allow decoders to fetch at least 2 first insns | 36 | .balign 8 # allow decoders to fetch at least 2 first insns |
37 | sha1_process_block64_shaNI: | 37 | sha1_process_block64_shaNI: |
38 | /* load initial hash values */ | 38 | /* load initial hash values */ |
39 | |||
40 | xor128 E0, E0 | ||
41 | movu128 80(%rdi), ABCD | 39 | movu128 80(%rdi), ABCD |
40 | xor128 E0, E0 | ||
42 | pinsrd $3, 80+4*4(%rdi), E0 # load to uppermost 32-bit word | 41 | pinsrd $3, 80+4*4(%rdi), E0 # load to uppermost 32-bit word |
43 | shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD | 42 | shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD |
44 | 43 | ||