diff options
author | iximeow <me@iximeow.net> | 2020-12-06 13:50:27 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-12-06 13:50:27 -0800 |
commit | 47a1d9d6fd48229961edf76b789328dc99a19c6c (patch) | |
tree | 076a2f4ef2c9f208ea758443947aa2c62785d6a8 /src | |
parent | 561c473a826a60fac742e323387ed30933ce85d2 (diff) |
fix an off by one in non-temporal hint selection
thank you @The6P4C for finding and reporting!
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1249,7 +1249,7 @@ impl fmt::Display for Instruction { // hint bits of `00` indicate no prefetch hint if hint != 0 { f.write_str( - [".nt1", ".nt2", ".nt3"][hint as usize] + [".nt1", ".nt2", ".nt3"][hint as usize - 1] )?; } } |