aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-12-16 01:34:01 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:14 -0800
commite641a7274d6862f64f5d8eb7033a2d3433b3b68c (patch)
treefbf9c5b343af73d33ac31238bcee137ddfab95ce /src/lib.rs
parenta245487fa29f7e132f6f2c42d84bdaf5fc099922 (diff)
fix avx bit number
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c583031..ddba4bb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1841,11 +1841,11 @@ impl InstDecoder {
}
pub fn avx(&self) -> bool {
- self.flags & (1 << 54) != 0
+ self.flags & (1 << 55) != 0
}
pub fn with_avx(mut self) -> Self {
- self.flags |= 1 << 54;
+ self.flags |= 1 << 55;
self
}