summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2024-09-13 20:41:08 +0200
committerMichael Buesch <m@bues.ch>2024-09-13 20:41:08 +0200
commita9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2 (patch)
treefc9543d10d0a00c5cd03aa9df30c950c20590a0c
parent34c22a67508df41af51176f374c10b39532712e8 (diff)
downloadrpmcontrol-a9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2.tar.xz
rpmcontrol-a9bbd5ab51d0cf90d12add9f5e8e388da8efa4a2.zip
fixpt: Don't inline mul
-rw-r--r--firmware/src/fixpt.rs1
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)
}
bues.ch cgit interface