diff options
author | Michael Buesch <m@bues.ch> | 2024-09-13 20:41:08 +0200 |
---|---|---|
committer | Michael Buesch <m@bues.ch> | 2024-09-13 20:41:08 +0200 |
commit | a9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2 (patch) | |
tree | fc9543d10d0a00c5cd03aa9df30c950c20590a0c | |
parent | 34c22a67508df41af51176f374c10b39532712e8 (diff) | |
download | rpmcontrol-a9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2.tar.xz rpmcontrol-a9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2.zip |
fixpt: Don't inline mul
-rw-r--r-- | firmware/src/fixpt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/src/fixpt.rs b/firmware/src/fixpt.rs index b94ccb7..031ac94 100644 --- a/firmware/src/fixpt.rs +++ b/firmware/src/fixpt.rs @@ -78,6 +78,7 @@ impl core::ops::Sub for Fixpt { impl core::ops::Mul for Fixpt { type Output = Self; + #[inline(never)] fn mul(self, other: Self) -> Self { Self(((self.0 as i32 * other.0 as i32) >> Self::SHIFT) as i16) } |