Include immintrin.h header for enscripten.

(cherry picked from commit 34780d8bd13d0af0cf17a22789ef286e8512594d)
This commit is contained in:
Antonio Sánchez 2022-07-22 02:27:42 +00:00 committed by Antonio Sanchez
parent ea57f9b78f
commit 6aaa45db5f

View File

@ -339,7 +339,7 @@
extern "C" {
// In theory we should only include immintrin.h and not the other *mmintrin.h header files directly.
// Doing so triggers some issues with ICC. However old gcc versions seems to not have this file, thus:
#if EIGEN_COMP_ICC >= 1110
#if EIGEN_COMP_ICC >= 1110 || EIGEN_COMP_EMSCRIPTEN
#include <immintrin.h>
#else
#include <mmintrin.h>