Subversion Repository Public Repository

Divide-Dependencies

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 101 vs 102 for /sdl/include/SDL_cpuinfo.h

Diff revisions: vs.
  @@ -51,16 +51,19 @@
51 51 #include <intrin.h>
52 52 #else
53 53 #ifdef __ALTIVEC__
54 - #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
54 + #if defined(HAVE_ALTIVEC_H) && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
55 55 #include <altivec.h>
56 56 #undef pixel
57 57 #undef bool
58 58 #endif
59 59 #endif
60 + #if defined(__ARM_NEON__) && !defined(SDL_DISABLE_ARM_NEON_H)
61 + #include <arm_neon.h>
62 + #endif
60 63 #if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
61 64 #include <mm3dnow.h>
62 65 #endif
63 - #if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
66 + #if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
64 67 #include <immintrin.h>
65 68 #else
66 69 #if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
  @@ -160,6 +163,11 @@
160 163 extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX2(void);
161 164
162 165 /**
166 + * This function returns true if the CPU has AVX-512F (foundation) features.
167 + */
168 + extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX512F(void);
169 +
170 + /**
163 171 * This function returns true if the CPU has NEON (ARM SIMD) features.
164 172 */
165 173 extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
  @@ -169,7 +177,6 @@
169 177 */
170 178 extern DECLSPEC int SDLCALL SDL_GetSystemRAM(void);
171 179
172 -
173 180 /* Ends C function definitions when using C++ */
174 181 #ifdef __cplusplus
175 182 }