|
Size: 576
Comment:
|
Size: 590
Comment: added the word "in kilobytes" to make cache size measurement more clear
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 15: | Line 15: |
| Returns the L1 cache line size of the CPU. | Returns the L1 cache line size of the CPU, in kilobytes. |
SDL_GetCPUCacheLineSize
Use this function to determine the L1 cache line size of the CPU.
Syntax
int SDL_GetCPUCacheLineSize(void)
Return Value
Returns the L1 cache line size of the CPU, in kilobytes.
Code Examples
You can add your code example here
Remarks
This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.
