Skip to content

Commit 0cdbe08

Browse files
authored
Merge pull request #1561 from evoskuil/master
Fix AVX512 regression.
2 parents fc4994c + 61f0540 commit 0cdbe08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/bitcoin/system/intrinsics/xcpu/functional_512.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ template <typename Word, if_integral_integer<Word> = true>
160160
INLINE xint512_t add(xint512_t a, xint512_t b) NOEXCEPT
161161
{
162162
if constexpr (is_same_type<Word, uint8_t>)
163-
return mm256_add_epi8(a, b);
163+
return mm512_add_epi8(a, b);
164164
if constexpr (is_same_type<Word, uint16_t>)
165-
return mm256_add_epi16(a, b);
165+
return mm512_add_epi16(a, b);
166166
if constexpr (is_same_type<Word, uint32_t>)
167-
return mm256_add_epi32(a, b);
167+
return mm512_add_epi32(a, b);
168168
if constexpr (is_same_type<Word, uint64_t>)
169-
return mm256_add_epi64(a, b);
169+
return mm512_add_epi64(a, b);
170170
}
171171

172172
// AVX512F

0 commit comments

Comments
 (0)