@samitouri / QOSamiQemu / commits / 1d8c1b44d6

fpu: Mark unpack_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:35 UTC 1d8c1b44d63bca8165aa649d6cf669ccfa8cbf0a
1 file changed +2 -1
fpu/softfloat.c
+2 -1
@@ -633,7 +633,8 @@ static const FloatFmt floatx80_params[3] = {
633 };
634
635 /* Unpack a float to parts, but do not canonicalize. */
636 -static FloatParts64 unpack_raw64(const FloatFmt *fmt, uint64_t raw)
636 +static inline QEMU_ALWAYS_INLINE
637 +FloatParts64 unpack_raw64(const FloatFmt *fmt, uint64_t raw)
638 {
639 const int f_size = fmt->frac_size;
640 const int e_size = fmt->exp_size;