View source code
Display the source code in core/simd.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

core.simd.prefetch - multiple declarations

Function prefetch

Emit prefetch instruction.

void prefetch(bool writeFetch, ubyte locality) (
  const(void)* address
);

Parameters

NameDescription
address 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:

writeFetchlocalityInstruction
false0prefetchnta
false1prefetch2
false2prefetch1
false3prefetch0
false0prefetchw
false1prefetchw
false2prefetchw
false3prefetchw

Function prefetch

Emit prefetch instruction.

void prefetch(bool writeFetch, ubyte locality) (
  const(void)* address
);

Parameters

NameDescription
address 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:

writeFetchlocalityInstruction
false0prefetchnta
false1prefetch2
false2prefetch1
false3prefetch0
false0prefetchw
false1prefetchw
false2prefetchw
false3prefetchw

Authors

Walter Bright,

License

Boost License 1.0.