comparison include/SDL_cpuinfo.h @ 5268:e1122f31fec5

Fixed SSE4 detection, and split it into SSE 4.1 and 4.2
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Feb 2011 23:02:35 -0800
parents b530ef003506
children
comparison
equal deleted inserted replaced
5267:b530ef003506 5268:e1122f31fec5
83 * This function returns true if the CPU has SSE3 features. 83 * This function returns true if the CPU has SSE3 features.
84 */ 84 */
85 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE3(void); 85 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE3(void);
86 86
87 /** 87 /**
88 * This function returns true if the CPU has SSE4 features. 88 * This function returns true if the CPU has SSE4.1 features.
89 */ 89 */
90 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE4(void); 90 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE41(void);
91
92 /**
93 * This function returns true if the CPU has SSE4.2 features.
94 */
95 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE42(void);
91 96
92 97
93 /* Ends C function definitions when using C++ */ 98 /* Ends C function definitions when using C++ */
94 #ifdef __cplusplus 99 #ifdef __cplusplus
95 /* *INDENT-OFF* */ 100 /* *INDENT-OFF* */