@samitouri / QOSamiQemu / commits / 744d9e9c19

fpu: Mark pack_raw64 QEMU_ALWAYS_INLINE

This is almost always used with a constant FloatFmt, so inlining pulls the constants into the shifts. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Richard Henderson committed Apr 25, 2026 at 20:38 UTC 744d9e9c1995ea35d257273d508defe96e0b6055
1 file changed +2 -1
fpu/softfloat.c
+2 -1
@@ -662,7 +662,8 @@ static FloatParts128 float128_unpack_raw(float128 f)
662 }
663
664 /* Pack a float from parts, but do not canonicalize. */
665 -static uint64_t pack_raw64(const FloatParts64 *p, const FloatFmt *fmt)
665 +static inline uint64_t QEMU_ALWAYS_INLINE
666 +pack_raw64(const FloatParts64 *p, const FloatFmt *fmt)
667 {
668 const int f_size = fmt->frac_size;
669 const int e_size = fmt->exp_size;