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
Name | Description |
---|---|
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:
writeFetch | locality | Instruction |
---|---|---|
false | 0 | prefetchnta |
false | 1 | prefetch2 |
false | 2 | prefetch1 |
false | 3 | prefetch0 |
false | 0 | prefetchw |
false | 1 | prefetchw |
false | 2 | prefetchw |
false | 3 | prefetchw |
Function prefetch
Emit prefetch instruction.
void prefetch(bool writeFetch, ubyte locality)
(
const(void)* address
);
Parameters
Name | Description |
---|---|
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:
writeFetch | locality | Instruction |
---|---|---|
false | 0 | prefetchnta |
false | 1 | prefetch2 |
false | 2 | prefetch1 |
false | 3 | prefetch0 |
false | 0 | prefetchw |
false | 1 | prefetchw |
false | 2 | prefetchw |
false | 3 | prefetchw |
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.