From 8c1c725dfa0f01b79e338a112861c09c2e59b4c8 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 23 May 2023 21:46:25 +0100 Subject: [PATCH] Inline always in new_from_parts --- agb-fixnum/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index c56de948..f9df1f38 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -416,6 +416,7 @@ impl Num { } #[doc(hidden)] + #[inline(always)] /// Called by the [num!] macro in order to create a fixed point number pub fn new_from_parts(num: (i32, i32)) -> Self { Self(I::from_as_i32(((num.0) << N) + (num.1 >> (30 - N))))