summaryrefslogtreecommitdiff
path: root/libbb/hash_md5_sha256_x86-32_shaNI.S
diff options
context:
space:
mode:
authorDenys Vlasenko2022-02-11 14:53:26 +0100
committerDenys Vlasenko2022-02-11 14:53:26 +0100
commitdda77e83762861b52d62f0f161e2b4bf8092eacf (patch)
tree9404e64d3dd15be73d9e089058b6b12e0317ca05 /libbb/hash_md5_sha256_x86-32_shaNI.S
parent8154146be491bc66ab34d5d5f2a2466ddbdcff52 (diff)
downloadbusybox-dda77e83762861b52d62f0f161e2b4bf8092eacf.zip
busybox-dda77e83762861b52d62f0f161e2b4bf8092eacf.tar.gz
libbb/sha1: revert last commit: pshufb is a SSSE3 insn, can't use it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/hash_md5_sha256_x86-32_shaNI.S')
-rw-r--r--libbb/hash_md5_sha256_x86-32_shaNI.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/hash_md5_sha256_x86-32_shaNI.S b/libbb/hash_md5_sha256_x86-32_shaNI.S
index 4b33449..c059fb1 100644
--- a/libbb/hash_md5_sha256_x86-32_shaNI.S
+++ b/libbb/hash_md5_sha256_x86-32_shaNI.S
@@ -15,6 +15,10 @@
//#define shuf128_32 pshufd
#define shuf128_32 shufps
+// pshufb and palignr are SSSE3 insns.
+// We do not check SSSE3 in cpuid,
+// all SHA-capable CPUs support it as well.
+
.section .text.sha256_process_block64_shaNI, "ax", @progbits
.globl sha256_process_block64_shaNI
.hidden sha256_process_block64_shaNI