comparison include/SDL_cpuinfo.h @ 5122:b3f075368b1f

Added API function to get CPU cache line size.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jan 2011 20:46:45 -0800
parents 02b860cbc7ce
children 6a65c1fc07af
comparison
equal deleted inserted replaced
5121:edd0f0617be4 5122:b3f075368b1f
50 * This function returns the number of CPU cores available. 50 * This function returns the number of CPU cores available.
51 */ 51 */
52 extern DECLSPEC int SDLCALL SDL_GetCPUCount(void); 52 extern DECLSPEC int SDLCALL SDL_GetCPUCount(void);
53 53
54 /** 54 /**
55 * This function returns the L1 cache line size of the CPU
56 *
57 * This is useful for determining multi-threaded structure padding
58 * or SIMD prefetch sizes.
59 */
60 extern DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize(void);
61
62 /**
55 * This function returns true if the CPU has the RDTSC instruction. 63 * This function returns true if the CPU has the RDTSC instruction.
56 */ 64 */
57 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); 65 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
58 66
59 /** 67 /**