comparison include/SDL_cpuinfo.h @ 3579:3427271a2d75

Added SDL_GetCPUCount() to see how many cores are available.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 06:53:53 +0000
parents d3baf5ac4e37
children f7b03b6838cb
comparison
equal deleted inserted replaced
3578:0d1b16ee0bca 3579:3427271a2d75
36 #ifdef __cplusplus 36 #ifdef __cplusplus
37 /* *INDENT-OFF* */ 37 /* *INDENT-OFF* */
38 extern "C" { 38 extern "C" {
39 /* *INDENT-ON* */ 39 /* *INDENT-ON* */
40 #endif 40 #endif
41
42 /**
43 * This function returns the number of CPU cores available.
44 */
45 extern DECLSPEC int SDLCALL SDL_GetCPUCount(void);
41 46
42 /** 47 /**
43 * This function returns true if the CPU has the RDTSC instruction. 48 * This function returns true if the CPU has the RDTSC instruction.
44 */ 49 */
45 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); 50 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);