The OpenD Programming Language

prefetch

Emit prefetch instruction.

  1. void prefetch(const(void)* address)
    version(LDC)
    pure nothrow @safe @nogc pragma(inline, true)
    void
    prefetch
    (
    bool writeFetch
    ubyte locality
    )
    (
    const(void)* address
    )
  2. void prefetch(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)

Meta