The OpenD Programming Language

prefetch

Emit prefetch instruction.

  1. void prefetch(const(void)* address)
  2. void prefetch(const(void)* address)
    version(!LDC && D_SIMD)
    pure nothrow @safe @nogc
    void
    prefetch
    (
    bool writeFetch
    ubyte locality
    )
    (
    const(void)* address
    )

Parameters

address const(void)*

address to be prefetched

writeFetch

true for write fetch, false for read fetch

locality

0..3 (0 meaning least local, 3 meaning most local) Note: The Intel mappings are:

$(THEAD writeFetch, locality, Instruction) $(TROW false, 0, prefetchnta) $(TROW false, 1, prefetch2) $(TROW false, 2, prefetch1) $(TROW false, 3, prefetch0) $(TROW true, 0, prefetchw) $(TROW true, 1, prefetchw) $(TROW true, 2, prefetchw) $(TROW true, 3, prefetchw)

Meta