Revert "Revert "Disable AVX512 Argon2 implementation on MacOS""

This reverts commit 495ebc26f6.
This commit is contained in:
Frank Denis 2019-07-24 00:18:06 +02:00
parent 495ebc26f6
commit c210fd558e

View File

@ -523,7 +523,8 @@ argon2_pick_best_implementation(void)
{
/* LCOV_EXCL_START */
#if defined(HAVE_AVX512FINTRIN_H) && defined(HAVE_AVX2INTRIN_H) && \
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H) && \
!defined(__APPLE__)
if (sodium_runtime_has_avx512f()) {
fill_segment = argon2_fill_segment_avx512f;
return 0;