Wiki Page Content

Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2011-02-14 23:39:51
Size: 730
Editor: SheenaSmith
Comment: create page - 2/14 changeset 5295 (since 5120)
Revision 4 as of 2013-09-11 11:57:10
Size: 590
Editor: axper
Comment: added the word "in kilobytes" to make cache size measurement more clear
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
#pragma camelcase off
Line 6: Line 5:
Use this function to return the L1 cache line size of the CPU. Use this function to determine the L1 cache line size of the CPU.
Line 16: Line 15:
Returns the L1 cache line size of the CPU on success^, or a negative error code on failure; call [[SDL_GetError]]() for more information^. 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.


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