fpu: Reverse the order of softfloat-parts* inclusions
Define the widest addition primitives first, so that they're already defined before being used by the narrower muladd primitive. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Richard Henderson committed
Apr 26, 2026 at 17:45 UTC
47e2370dfdb2e7ae0664cd95bce2e48685697887
1 file changed
+4
-5
fpu/softfloat.c
+4
-5
@@ -1638,14 +1638,11 @@ static const uint16_t rsqrt_tab[128] = {
1638
#define FloatPartsN glue(FloatParts,N)
1639
#define FloatPartsW glue(FloatParts,W)
1640
1641
-#define N 64
1642
-#define W 128
1641
+#define N 256
1642
1643
#include "softfloat-parts-addsub.c.inc"
1645
-#include "softfloat-parts.c.inc"
1644
1645
#undef N
1648
-#undef W
1646
#define N 128
1647
#define W 256
1648
@@ -1654,9 +1651,11 @@ static const uint16_t rsqrt_tab[128] = {
1651
1652
#undef N
1653
#undef W
1657
-#define N 256
1654
+#define N 64
1655
+#define W 128
1656
1657
#include "softfloat-parts-addsub.c.inc"
1658
+#include "softfloat-parts.c.inc"
1659
1660
#undef N
1661
#undef W