Added cache line size info in SDL_cpuinfo.h

I also added an implementation to dynamically query it, but didn't expose it since most x86 CPUs have an L1 cache line size of 64 bytes.
This commit is contained in:
Sam Lantinga 2011-01-27 16:46:15 -08:00
parent 1d518f0d73
commit fb824f9a04
4 changed files with 121 additions and 67 deletions

View file

@ -39,6 +39,11 @@ extern "C" {
/* *INDENT-ON* */
#endif
/* This is a guess for the cacheline size used for padding, and is correct
* for most x86 processors at this point.
*/
#define SDL_CACHELINE_SIZE 64
/**
* This function returns the number of CPU cores available.
*/