cmake+video: always use altivec.h header for detection + introduce SDL_ENABLE_ALTIVEC

This commit is contained in:
Anonymous Maarten
2023-03-15 04:56:55 +01:00
committed by Anonymous Maarten
parent 684709a5b6
commit d27db3defa
7 changed files with 14 additions and 20 deletions

View File

@@ -186,6 +186,10 @@
#include <SDL3/SDL.h>
#include <SDL3/SDL_intrin.h>
#if defined(__ALTIVEC__) && defined(SDL_ENABLE_ALTIVEC)
#define HAVE_ALTIVEC_INTRINSICS 1
#endif
#if defined(__ARM_NEON) && !defined(SDL_DISABLE_NEON)
#define HAVE_NEON_INTRINSICS 1
#endif

View File

@@ -46,9 +46,6 @@ enum blit_features
};
#if SDL_ALTIVEC_BLITTERS
#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#ifdef __MACOS__
#include <sys/sysctl.h>
static size_t