mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 12:31:09 +00:00
fpu: Fix rounding mode for floatN_to_uintM_round_to_zero
We incorrectly passed in the current rounding mode instead of float_round_to_zero. Backports commit bd49e6027cbc207c87633c7add3ebd7d3474cd35 from qemu
This commit is contained in:
parent
49476ebf5e
commit
bc8e85a1c5
|
@ -1486,7 +1486,7 @@ uint ## isz ## _t float ## fsz ## _to_uint ## isz ## _round_to_zero \
|
|||
(float ## fsz a, float_status *s) \
|
||||
{ \
|
||||
FloatParts p = float ## fsz ## _unpack_canonical(a, s); \
|
||||
return round_to_uint_and_pack(p, s->float_rounding_mode, \
|
||||
return round_to_uint_and_pack(p, float_round_to_zero, \
|
||||
UINT ## isz ## _MAX, s); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue