mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 22:59:49 +00:00
cmake: Allow build system to disable loongarch intrinsics
This commit is contained in:
committed by
Anonymous Maarten
parent
99b8313eb1
commit
46de6241d7
@@ -93,13 +93,11 @@ _m_prefetch(void *__P)
|
||||
#endif
|
||||
#endif /* compiler version */
|
||||
|
||||
#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX_H)
|
||||
#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX)
|
||||
#include <lsxintrin.h>
|
||||
#define __LSX__
|
||||
#endif
|
||||
#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX_H)
|
||||
#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX)
|
||||
#include <lasxintrin.h>
|
||||
#define __LASX__
|
||||
#endif
|
||||
#if defined(__AVX__) && !defined(SDL_DISABLE_AVX)
|
||||
#include <immintrin.h>
|
||||
|
||||
@@ -592,5 +592,7 @@ typedef unsigned int uintptr_t;
|
||||
#cmakedefine SDL_DISABLE_SSE3 1
|
||||
#cmakedefine SDL_DISABLE_AVX 1
|
||||
#cmakedefine SDL_DISABLE_MMX 1
|
||||
#cmakedefine SDL_DISABLE_LSX 1
|
||||
#cmakedefine SDL_DISABLE_LASX 1
|
||||
|
||||
#endif /* SDL_build_config_h_ */
|
||||
|
||||
Reference in New Issue
Block a user