mirror of https://github.com/encounter/SDL.git
SDL_audiocvt.c: disable AVX for clang < 5 and gcc < 4.9
See: https://github.com/libsdl-org/SDL/issues/4533
This commit is contained in:
parent
cc4ab10195
commit
cf85710cf8
|
@ -46,6 +46,15 @@
|
||||||
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
|
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
|
||||||
#define HAVE_AVX_INTRINSICS 1
|
#define HAVE_AVX_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
|
#if defined __clang__
|
||||||
|
# if (__clang_major__ < 5)
|
||||||
|
# undef HAVE_AVX_INTRINSICS
|
||||||
|
# endif
|
||||||
|
#elif defined __GNUC__
|
||||||
|
# if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)
|
||||||
|
# undef HAVE_AVX_INTRINSICS
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAVE_SSE3_INTRINSICS
|
#if HAVE_SSE3_INTRINSICS
|
||||||
/* Convert from stereo to mono. Average left and right. */
|
/* Convert from stereo to mono. Average left and right. */
|
||||||
|
|
Loading…
Reference in New Issue