Partager via


_prefetch (Windows Embedded CE 6.0)

1/5/2010

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

Architecture ARM, MIPS, SH-4, x86
Header cmnintrin.h
Routine _prefetch

See Also

Reference

Common Intrinsic Functions for Device Compilers

Other Resources

Intrinsic Functions for Device Compilers