Skip to content

Commit

Permalink
[Fix] MSVC ARM64EC requires including advanced intrinsics headers via…
Browse files Browse the repository at this point in the history
… <intrin.h> and not directly. Improve code compatibility in case we should ever enable SSE2 on ARM64EC.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21888 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Oct 20, 2024
1 parent 923a4e8 commit 9a2dcdc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sounddsp/EQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#include <cstddef>

#if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE)
#if MPT_COMPILER_MSVC
#include <intrin.h>
#endif
#include <xmmintrin.h>
#endif

Expand Down
3 changes: 3 additions & 0 deletions sounddsp/Reverb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include "mpt/base/numbers.hpp"

#if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE2)
#if MPT_COMPILER_MSVC
#include <intrin.h>
#endif
#include <emmintrin.h>
#endif

Expand Down
3 changes: 3 additions & 0 deletions tracklib/SampleEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#endif // MPT_COMPILER_MSVC

#if defined(MPT_ENABLE_ARCH_INTRINSICS_SSE2)
#if MPT_COMPILER_MSVC
#include <intrin.h>
#endif
#include <emmintrin.h>
#endif

Expand Down

0 comments on commit 9a2dcdc

Please sign in to comment.