]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
fpu: Reverse the order of softfloat-parts* inclusions
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 26 Apr 2026 07:45:18 +0000 (17:45 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Apr 2026 22:06:46 +0000 (08:06 +1000)
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>
fpu/softfloat.c

index e5d8b9573a16f69411eba53a2c90b373c635905a..aa96ac530d0aecf504505b253aa2193c0a1b4658 100644 (file)
@@ -1638,14 +1638,11 @@ static const uint16_t rsqrt_tab[128] = {
 #define FloatPartsN    glue(FloatParts,N)
 #define FloatPartsW    glue(FloatParts,W)
 
-#define N 64
-#define W 128
+#define N 256
 
 #include "softfloat-parts-addsub.c.inc"
-#include "softfloat-parts.c.inc"
 
 #undef  N
-#undef  W
 #define N 128
 #define W 256
 
@@ -1654,9 +1651,11 @@ static const uint16_t rsqrt_tab[128] = {
 
 #undef  N
 #undef  W
-#define N            256
+#define N 64
+#define W 128
 
 #include "softfloat-parts-addsub.c.inc"
+#include "softfloat-parts.c.inc"
 
 #undef  N
 #undef  W