_prefetch

9/7/2007

This function loads the data cache from main memory, if possible.

Syntax

void __cdecl __prefetch(
  void *
);

Parameters

  • *
    [in] Pointer to cache line.

Return Value

None.

Remarks

If the requested functionality is available on the target hardware platform, this function provides a hint to the system that memory at or near the given location may be accessed soon. Some systems may choose to optimize for that memory access pattern, increasing runtime performance. However, from the C++ language point of view, the function has no observable effect, and may do nothing at all.

Requirements

Routine Required header Architecture

_prefetch

<cmnintrin.h>

x86, ARM, SH-4, MIPS

See Also

Other Resources

Intrinsic Functions for Device Compilers