include/SDL_cpuinfo.h
changeset 5116 02b860cbc7ce
parent 5115 427998ff3bcf
child 5120 b3f075368b1f
     1.1 --- a/include/SDL_cpuinfo.h	Thu Jan 27 16:46:15 2011 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Thu Jan 27 16:51:47 2011 -0800
     1.3 @@ -39,10 +39,12 @@
     1.4  /* *INDENT-ON* */
     1.5  #endif
     1.6  
     1.7 -/* This is a guess for the cacheline size used for padding, and is correct
     1.8 - * for most x86 processors at this point.
     1.9 +/* This is a guess for the cacheline size used for padding.
    1.10 + * Most x86 processors have a 64 byte cache line.
    1.11 + * The 64-bit PowerPC processors have a 128 byte cache line.
    1.12 + * We'll use the larger value to be generally safe.
    1.13   */
    1.14 -#define SDL_CACHELINE_SIZE  64
    1.15 +#define SDL_CACHELINE_SIZE  128
    1.16  
    1.17  /**
    1.18   *  This function returns the number of CPU cores available.