From 174ddea99d903b3023f630e22dfd90aa8efe4cd6 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 28 Jan 2022 19:42:57 -0800 Subject: [PATCH] Softfloat: Stop doing special handling for FREM This isn't correct and breaks games. This makes the FREM and REM1 implementation the same. While not 100% correct, it is still better than before. New issues will be created to handle the differences in the future. Fixes #1374. Also fixes most of the HL2 issues, just not the seam issue. --- External/FEXCore/Source/Common/SoftFloat.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/External/FEXCore/Source/Common/SoftFloat.h b/External/FEXCore/Source/Common/SoftFloat.h index be48c665d..c85bb491b 100644 --- a/External/FEXCore/Source/Common/SoftFloat.h +++ b/External/FEXCore/Source/Common/SoftFloat.h @@ -158,15 +158,7 @@ struct X80SoftFloat { return Result; #else - X80SoftFloat Rem = extF80_rem(lhs, rhs); - if (SignBit(Rem)) { - Rem = extF80_add(Rem, rhs); - } - else { - Rem.Sign = SignBit(lhs); - } - - return Rem; + return extF80_rem(lhs, rhs); #endif }