include/SDL_cpuinfo.h
changeset 5120 b3f075368b1f
parent 5116 02b860cbc7ce
child 5259 6a65c1fc07af
     1.1 --- a/include/SDL_cpuinfo.h	Thu Jan 27 20:37:54 2011 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Thu Jan 27 20:46:45 2011 -0800
     1.3 @@ -52,6 +52,14 @@
     1.4  extern DECLSPEC int SDLCALL SDL_GetCPUCount(void);
     1.5  
     1.6  /**
     1.7 + *  This function returns the L1 cache line size of the CPU
     1.8 + *
     1.9 + *  This is useful for determining multi-threaded structure padding
    1.10 + *  or SIMD prefetch sizes.
    1.11 + */
    1.12 +extern DECLSPEC int SDLCALL SDL_GetCPUCacheLineSize(void);
    1.13 +
    1.14 +/**
    1.15   *  This function returns true if the CPU has the RDTSC instruction.
    1.16   */
    1.17  extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);