summaryrefslogtreecommitdiff
path: root/libbb/hash_md5_sha_x86-64_shaNI.S
diff options
context:
space:
mode:
authorDenys Vlasenko2022-02-08 15:34:02 +0100
committerDenys Vlasenko2022-02-08 15:34:02 +0100
commiteb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede (patch)
tree036c4cf2bebabfe4ff5a738529db3604c8f00ee7 /libbb/hash_md5_sha_x86-64_shaNI.S
parenteb52e7fa522d829fb400461ca4c808ee5c1d6428 (diff)
downloadbusybox-eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede.zip
busybox-eb8d5f3b8f3c91f3ed82a52b4ce52a154c146ede.tar.gz
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 'libbb/hash_md5_sha_x86-64_shaNI.S')
-rw-r--r--libbb/hash_md5_sha_x86-64_shaNI.S3
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 fc2ca92..b320293 100644
--- a/libbb/hash_md5_sha_x86-64_shaNI.S
+++ b/libbb/hash_md5_sha_x86-64_shaNI.S
@@ -36,9 +36,8 @@
.balign 8 # allow decoders to fetch at least 2 first insns
sha1_process_block64_shaNI:
/* load initial hash values */
-
- xor128 E0, E0
movu128 80(%rdi), ABCD
+ xor128 E0, E0
pinsrd $3, 80+4*4(%rdi), E0 # load to uppermost 32-bit word
shuf128_32 $0x1B, ABCD, ABCD # DCBA -> ABCD