From bff57581bc06f2d18a8e5a45f301805a0231357e Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 23 Feb 2021 20:55:02 +0300
Subject: [PATCH] removed SDL_HasARMSIMD and SDL_HasNEON from public api.
---
include/SDL_cpuinfo.h | 6 ------
src/video/SDL_blit.h | 3 +++
test/testplatform.c | 4 ----
3 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h
index 75b5f207..4200d6d1 100644
--- a/include/SDL_cpuinfo.h
+++ b/include/SDL_cpuinfo.h
@@ -60,12 +60,6 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
/** This function returns true if the CPU has AltiVec features */
extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
-/** This function returns true if the CPU has ARM SIMD (ARMv6) features */
-extern DECLSPEC SDL_bool SDLCALL SDL_HasARMSIMD(void);
-
-/** This function returns true if the CPU has ARM NEON features */
-extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
-
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
diff --git a/src/video/SDL_blit.h b/src/video/SDL_blit.h
index d64c1e5c..41c7c0f6 100644
--- a/src/video/SDL_blit.h
+++ b/src/video/SDL_blit.h
@@ -26,6 +26,9 @@
#include "SDL_endian.h"
+extern SDL_bool SDLCALL SDL_HasARMSIMD(void); /* whether CPU has ARM SIMD (ARMv6) features */
+extern SDL_bool SDLCALL SDL_HasNEON(void); /* whether CPU has ARM NEON features. */
+
/* The structure passed to the low level blit functions */
typedef struct {
Uint8 *s_pixels;
diff --git a/test/testplatform.c b/test/testplatform.c
index d8882d12..a7b0916a 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -1,4 +1,3 @@
-
#include <stdio.h>
#include "SDL.h"
@@ -126,7 +125,6 @@ int TestEndian(SDL_bool verbose)
return( error ? 1 : 0 );
}
-
int TestCPUInfo(SDL_bool verbose)
{
if ( verbose ) {
@@ -138,8 +136,6 @@ int TestCPUInfo(SDL_bool verbose)
printf("SSE %s\n", SDL_HasSSE() ? "detected" : "not detected");
printf("SSE2 %s\n", SDL_HasSSE2() ? "detected" : "not detected");
printf("AltiVec %s\n", SDL_HasAltiVec() ? "detected" : "not detected");
- printf("ARM SIMD %s\n", SDL_HasARMSIMD() ? "detected" : "not detected");
- printf("NEON %s\n", SDL_HasNEON() ? "detected" : "not detected");
}
return(0);
}