mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-19 14:01:01 +00:00
cmake: Allow build system to disable arm neon intrinsics
This commit is contained in:
committed by
Anonymous Maarten
parent
46de6241d7
commit
fc4085b54e
@@ -65,7 +65,7 @@ _m_prefetch(void *__P)
|
||||
#endif
|
||||
#elif defined(__MINGW64_VERSION_MAJOR)
|
||||
#include <intrin.h>
|
||||
#if !defined(SDL_DISABLE_ARM_NEON_H) && defined(__ARM_NEON)
|
||||
#if defined(__ARM_NEON) && !defined(SDL_DISABLE_NEON)
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
#else
|
||||
@@ -73,7 +73,7 @@ _m_prefetch(void *__P)
|
||||
#if defined(HAVE_ALTIVEC_H) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC_H)
|
||||
#include <altivec.h>
|
||||
#endif
|
||||
#if !defined(SDL_DISABLE_ARM_NEON_H)
|
||||
#if !defined(SDL_DISABLE_NEON)
|
||||
# if defined(__ARM_NEON)
|
||||
# include <arm_neon.h>
|
||||
# elif defined(__WINDOWS__) || defined(__WINRT__) || defined(__GDK__)
|
||||
|
||||
@@ -594,5 +594,6 @@ typedef unsigned int uintptr_t;
|
||||
#cmakedefine SDL_DISABLE_MMX 1
|
||||
#cmakedefine SDL_DISABLE_LSX 1
|
||||
#cmakedefine SDL_DISABLE_LASX 1
|
||||
#cmakedefine SDL_DISABLE_NEON 1
|
||||
|
||||
#endif /* SDL_build_config_h_ */
|
||||
|
||||
Reference in New Issue
Block a user