mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 22:13:12 +00:00
fixup! Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.
This commit is contained in:
parent
b1a29371c9
commit
5b46a89230
|
@ -140,11 +140,9 @@ u32 vfp_double_normaliseround(ARMul_State* state, int dd, struct vfp_double* vd,
|
|||
|
||||
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
||||
// Flush denormal to positive 0
|
||||
exponent = 0;
|
||||
significand = 0;
|
||||
|
||||
vd->sign = 0;
|
||||
vd->exponent = exponent;
|
||||
vd->significand = significand;
|
||||
|
||||
underflow = 0;
|
||||
|
|
|
@ -143,11 +143,9 @@ u32 vfp_single_normaliseround(ARMul_State* state, int sd, struct vfp_single* vs,
|
|||
|
||||
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
||||
// Flush denormal to positive 0
|
||||
exponent = 0;
|
||||
significand = 0;
|
||||
|
||||
vs->sign = 0;
|
||||
vs->exponent = exponent;
|
||||
vs->significand = significand;
|
||||
|
||||
underflow = 0;
|
||||
|
|
Loading…
Reference in a new issue