fpu: Inline floatx80_unpack_raw into only caller
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Richard Henderson committed
Apr 25, 2026 at 19:44 UTC
6d22f7e149287bfd7701891837c30810132bd6f0
1 file changed
+6
-11
fpu/softfloat.c
+6
-11
@@ -646,16 +646,6 @@ static FloatParts64 unpack_raw64(const FloatFmt *fmt, uint64_t raw)
646
};
647
}
648
649
-static void QEMU_FLATTEN floatx80_unpack_raw(FloatParts128 *p, floatx80 f)
650
-{
651
- *p = (FloatParts128) {
652
- .cls = float_class_unclassified,
653
- .sign = extract32(f.high, 15, 1),
654
- .exp = extract32(f.high, 0, 15),
655
- .frac_hi = f.low
656
- };
657
-}
658
-
649
static void QEMU_FLATTEN float128_unpack_raw(FloatParts128 *p, float128 f)
650
{
651
const int f_size = float128_params.frac_size - 64;
@@ -1626,7 +1616,12 @@ static bool floatx80_unpack_canonical(FloatParts128 *p, floatx80 f,
1616
return false;
1617
}
1618
1629
- floatx80_unpack_raw(p, f);
1619
+ *p = (FloatParts128) {
1620
+ .cls = float_class_unclassified,
1621
+ .sign = extract32(f.high, 15, 1),
1622
+ .exp = extract32(f.high, 0, 15),
1623
+ .frac_hi = f.low
1624
+ };
1625
1626
if (likely(p->exp != floatx80_params[floatx80_precision_x].exp_max)) {
1627
parts128_canonicalize(p, s, &floatx80_params[floatx80_precision_x]);