From 61f0540ae8c3c8534c3e6168d05bcd9071d3df3c Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 6 Dec 2024 10:48:46 -0500 Subject: [PATCH] Fix AVX512 regression. --- include/bitcoin/system/intrinsics/xcpu/functional_512.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bitcoin/system/intrinsics/xcpu/functional_512.hpp b/include/bitcoin/system/intrinsics/xcpu/functional_512.hpp index 53724cdbbd..d3d6b0b013 100644 --- a/include/bitcoin/system/intrinsics/xcpu/functional_512.hpp +++ b/include/bitcoin/system/intrinsics/xcpu/functional_512.hpp @@ -160,13 +160,13 @@ template = true> INLINE xint512_t add(xint512_t a, xint512_t b) NOEXCEPT { if constexpr (is_same_type) - return mm256_add_epi8(a, b); + return mm512_add_epi8(a, b); if constexpr (is_same_type) - return mm256_add_epi16(a, b); + return mm512_add_epi16(a, b); if constexpr (is_same_type) - return mm256_add_epi32(a, b); + return mm512_add_epi32(a, b); if constexpr (is_same_type) - return mm256_add_epi64(a, b); + return mm512_add_epi64(a, b); } // AVX512F