From e65e551f52458ca688ee6cdd8a16e82f155160f3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 15 Feb 2013 20:40:00 -0800 Subject: [PATCH] Fix VFPU D prefix handling for -0.0f. --- Core/MIPS/MIPSIntVFPU.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSIntVFPU.cpp b/Core/MIPS/MIPSIntVFPU.cpp index edfa630ec3..1252dac564 100644 --- a/Core/MIPS/MIPSIntVFPU.cpp +++ b/Core/MIPS/MIPSIntVFPU.cpp @@ -150,7 +150,8 @@ void ApplyPrefixD(float *v, VectorSize size, bool onlyWriteMask = false) if (sat == 1) { if (v[i] > 1.0f) v[i] = 1.0f; - if (v[i] < 0.0f) v[i] = 0.0f; + // This includes -0.0f -> +0.0f. + if (v[i] <= 0.0f) v[i] = 0.0f; } else if (sat == 3) {