Fixed audiotypecvt assertion when without CPUInfo (#7464)

main
Emily Banerjee 2023-03-29 16:22:57 +01:00 committed by GitHub
parent f1099f8e70
commit 8973d20f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,8 @@
#include "SDL_audio_c.h"
#include "SDL_audiocvt_c.h"
#ifndef SDL_CPUINFO_DISABLED
#if defined(__x86_64__) && SDL_SSE2_INTRINSICS
#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* x86_64 guarantees SSE2. */
#elif __MACOS__ && SDL_SSE2_INTRINSICS
@ -32,9 +34,10 @@
#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7) && SDL_NEON_INTRINSICS
#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* All Apple ARMv7 chips promise NEON support. */
#endif
#endif
/* Set to zero if platform is guaranteed to use a SIMD codepath here. */
#ifndef NEED_SCALAR_CONVERTER_FALLBACKS
#if !defined(NEED_SCALAR_CONVERTER_FALLBACKS) || SDL_CPUINFO_DISABLED
#define NEED_SCALAR_CONVERTER_FALLBACKS 1
#endif