diff options
author | iximeow <me@iximeow.net> | 2020-07-26 13:00:38 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-07-26 13:00:38 -0700 |
commit | 1b71bf3e6521e7ecbec6b1872b7120cc9be3bb72 (patch) | |
tree | 39afc6295c1d7c8d5dbd3e4d0116db4c42fd8019 /src | |
parent | 798785fddfca1eab5ad6bb47812de727b650f679 (diff) |
more inline-friendliness when built without LTO
Diffstat (limited to 'src')
-rw-r--r-- | src/long_mode/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 3b2ba5f..43cb19e 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -1530,9 +1530,11 @@ impl yaxpeax_arch::Arch for Arch { impl LengthedInstruction for Instruction { type Unit = AddressDiff<u64>; + #[inline] fn len(&self) -> Self::Unit { AddressDiff::from_const(self.length.into()) } + #[inline] fn min_size() -> Self::Unit { AddressDiff::from_const(1) } |