From: <sv...@op...> - 2025-01-07 15:22:51
|
Author: manx Date: Tue Jan 7 16:22:38 2025 New Revision: 22844 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22844 Log: [Fix] Opus: Fix build for ARM64EC. Modified: trunk/OpenMPT/include/opus/OpenMPT.txt trunk/OpenMPT/include/opus/celt/float_cast.h Modified: trunk/OpenMPT/include/opus/OpenMPT.txt ============================================================================== --- trunk/OpenMPT/include/opus/OpenMPT.txt Mon Jan 6 14:52:03 2025 (r22843) +++ trunk/OpenMPT/include/opus/OpenMPT.txt Tue Jan 7 16:22:38 2025 (r22844) @@ -1,6 +1,7 @@ libopus library version 1.5.2 (2024-04-12). The following changes have been made: * Obviously, unnecessary folders and files have been removed. + * celt/float_cast.h has been modified to compile on ARM64EC. * celt/x86/vq_sse2.c has been modified to check for OPUS_X86_MAY_HAVE_SSE2. * celt/x86/x86_arch_macros.c has been modified to support AVX and AVX2. * A warning in dnn/dred_encoder.c has been silenced. Modified: trunk/OpenMPT/include/opus/celt/float_cast.h ============================================================================== --- trunk/OpenMPT/include/opus/celt/float_cast.h Mon Jan 6 14:52:03 2025 (r22843) +++ trunk/OpenMPT/include/opus/celt/float_cast.h Tue Jan 7 16:22:38 2025 (r22844) @@ -69,6 +69,7 @@ #elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1)) + #include <intrin.h> /* OpenMPT */ #include <xmmintrin.h> static OPUS_INLINE opus_int32 float2int(float value) { |