From 49a09cccdd2d4920154e3bc68048dc85754640e3 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 13 Aug 2021 23:45:16 -0700 Subject: force read_sib inlining in 64-bit mode even though NullSink is no-ops, it causes llvm to not inline this function, for a net perf reduction --- src/long_mode/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/long_mode') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 54d83e8..c4c6681 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5701,6 +5701,7 @@ fn read_sib_disp< } #[allow(non_snake_case)] +#[inline(always)] fn read_sib< T: Reader<::Address, ::Word>, S: DescriptionSink, -- cgit v1.1