[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/17] target/hexagon: Simplify internal_mpyhh setup
From: |
Richard Henderson |
Subject: |
[PATCH 17/17] target/hexagon: Simplify internal_mpyhh setup |
Date: |
Sun, 8 Dec 2024 16:48:44 -0600 |
Initialize x with accumulated via direct assignment,
rather than multiplying by 1.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hexagon/fma_emu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hexagon/fma_emu.c b/target/hexagon/fma_emu.c
index 6749538c09..bc6e742639 100644
--- a/target/hexagon/fma_emu.c
+++ b/target/hexagon/fma_emu.c
@@ -453,7 +453,7 @@ float64 internal_mpyhh(float64 a, float64 b,
float64_is_infinity(b)) {
return float64_mul(a, b, fp_status);
}
- x.mant = int128_mul_6464(accumulated, 1);
+ x.mant = int128_make64(accumulated);
x.sticky = sticky;
prod = fGETUWORD(1, float64_getmant(a)) * fGETUWORD(1, float64_getmant(b));
x.mant = int128_add(x.mant, int128_mul_6464(prod, 0x100000000ULL));
--
2.43.0
- [PATCH 12/17] target/hexagon: Remove internal_fmafx, (continued)
- [PATCH 12/17] target/hexagon: Remove internal_fmafx, Richard Henderson, 2024/12/08
- [PATCH 13/17] target/hexagon: Expand GEN_XF_ROUND, Richard Henderson, 2024/12/08
- [PATCH 14/17] target/hexagon: Remove Float, Richard Henderson, 2024/12/08
- [PATCH 15/17] target/hexagon: Remove Double, Richard Henderson, 2024/12/08
- [PATCH 16/17] target/hexagon: Use mulu64 for int128_mul_6464, Richard Henderson, 2024/12/08
- [PATCH 17/17] target/hexagon: Simplify internal_mpyhh setup,
Richard Henderson <=