Skip to content

Commit

Permalink
Merge pull request #1561 from evoskuil/master
Browse files Browse the repository at this point in the history
Fix AVX512 regression.
  • Loading branch information
evoskuil authored Dec 6, 2024
2 parents fc4994c + 61f0540 commit 0cdbe08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/bitcoin/system/intrinsics/xcpu/functional_512.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ template <typename Word, if_integral_integer<Word> = true>
INLINE xint512_t add(xint512_t a, xint512_t b) NOEXCEPT
{
if constexpr (is_same_type<Word, uint8_t>)
return mm256_add_epi8(a, b);
return mm512_add_epi8(a, b);
if constexpr (is_same_type<Word, uint16_t>)
return mm256_add_epi16(a, b);
return mm512_add_epi16(a, b);
if constexpr (is_same_type<Word, uint32_t>)
return mm256_add_epi32(a, b);
return mm512_add_epi32(a, b);
if constexpr (is_same_type<Word, uint64_t>)
return mm256_add_epi64(a, b);
return mm512_add_epi64(a, b);
}

// AVX512F
Expand Down

0 comments on commit 0cdbe08

Please sign in to comment.