Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2016-10-15 02:42:35
Size: 561
Comment: SDL_GetCPUCacheLineSize returns a number of bytes, not kilobytes
Revision 7 as of 2016-11-28 21:37:12
Size: 623
Comment: Added Version section.
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
== Version ==
This function is available since SDL 2.0.0.

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 bytes.

Code Examples

You can add your code example here

Remarks

This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryCPU

None: SDL_GetCPUCacheLineSize (last edited 2016-11-28 21:37:12 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit