From: <sv...@op...> - 2024-10-20 12:59:44
|
Author: manx Date: Sun Oct 20 14:59:32 2024 New Revision: 21888 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21888 Log: [Fix] MSVC ARM64EC requires including advanced intrinsics headers via <intrin.h> and not directly. Improve code compatibility in case we should ever enable SSE2 on ARM64EC. Modified: trunk/OpenMPT/sounddsp/EQ.cpp trunk/OpenMPT/sounddsp/Reverb.cpp trunk/OpenMPT/tracklib/SampleEdit.cpp Modified: trunk/OpenMPT/sounddsp/EQ.cpp ============================================================================== --- trunk/OpenMPT/sounddsp/EQ.cpp Sun Oct 20 14:57:24 2024 (r21887) +++ trunk/OpenMPT/sounddsp/EQ.cpp Sun Oct 20 14:59:32 2024 (r21888) @@ -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 Modified: trunk/OpenMPT/sounddsp/Reverb.cpp ============================================================================== --- trunk/OpenMPT/sounddsp/Reverb.cpp Sun Oct 20 14:57:24 2024 (r21887) +++ trunk/OpenMPT/sounddsp/Reverb.cpp Sun Oct 20 14:59:32 2024 (r21888) @@ -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 Modified: trunk/OpenMPT/tracklib/SampleEdit.cpp ============================================================================== --- trunk/OpenMPT/tracklib/SampleEdit.cpp Sun Oct 20 14:57:24 2024 (r21887) +++ trunk/OpenMPT/tracklib/SampleEdit.cpp Sun Oct 20 14:59:32 2024 (r21888) @@ -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 |