From e641a7274d6862f64f5d8eb7033a2d3433b3b68c Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 16 Dec 2019 01:34:01 -0800 Subject: fix avx bit number --- src/lib.rs | 4 ++-- 1 file 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 } -- cgit v1.1