mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 10:14:57 -05:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user