1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

Fix intermediate rounding of fused multiply-add instructions.

This commit is contained in:
Andrew Church 2015-01-18 07:04:35 +09:00
parent fee20573d2
commit 43e74a9c61

View File

@ -3895,7 +3895,7 @@ private:
const double a = CPU.FPR[fra];
const double b = CPU.FPR[frb];
const double c = CPU.FPR[frc];
const double res = a * c + (sub ? -b : b);
const double res = fma(a, c, sub ? -b : b);
if(single) CPU.FPR[frd] = (float)(neg ? -res : res);
else CPU.FPR[frd] = (neg ? -res : res);
CPU.FPSCR.FPRF = CPU.FPR[frd].GetType();