git: a3ed55ff1818 - main - lib/libmd: reenable AVX2 SHA1 kernel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Jun 2025 10:45:52 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=a3ed55ff181827ef1541e3ed25c76844bc835ad8
commit a3ed55ff181827ef1541e3ed25c76844bc835ad8
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-06-04 10:00:05 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-06-04 10:28:03 +0000
lib/libmd: reenable AVX2 SHA1 kernel
Following jrtc27@'s fix of the transcribed code, it seems to work
fine now.
See also: 207f3b2b25eaa0f9d32699e664b139e5e40e5450
---
lib/libmd/amd64/sha1dispatch.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/libmd/amd64/sha1dispatch.c b/lib/libmd/amd64/sha1dispatch.c
index 6c4d43b95ac9..86509195d56e 100644
--- a/lib/libmd/amd64/sha1dispatch.c
+++ b/lib/libmd/amd64/sha1dispatch.c
@@ -47,10 +47,8 @@ DEFINE_UIFUNC(, void, sha1_block, (SHA1_CTX *, const void *, size_t))
{
if (cpu_stdext_feature & CPUID_STDEXT_SHA)
return (_libmd_sha1block_shani);
-#if 0
if ((cpu_stdext_feature & AVX2_STDEXT_NEEDED) == AVX2_STDEXT_NEEDED)
return (sha1block_avx2_wrapper);
-#endif
else
return (_libmd_sha1block_scalar);
}