mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/hexagon: Simplify internal_mpyhh setup
Initialize x with accumulated via direct assignment, rather than multiplying by 1. Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
65b4dce393
commit
59abfb444e
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue