yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

fixup! Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.

This commit is contained in:
Subv 2017-05-21 18:56:09 -05:00
parent b1a29371c9
commit 5b46a89230
2 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -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;