diff --git a/ChocolArm64/Instruction/ASoftFallback.cs b/ChocolArm64/Instruction/ASoftFallback.cs index 5fb17f7fcb..54835c4096 100644 --- a/ChocolArm64/Instruction/ASoftFallback.cs +++ b/ChocolArm64/Instruction/ASoftFallback.cs @@ -263,9 +263,6 @@ namespace ChocolArm64.Instruction if (BitConverter.SingleToInt32Bits(val1) < 0 && BitConverter.SingleToInt32Bits(val2) < 0) return -0.0f; - if (BitConverter.SingleToInt32Bits(val1) < 0 || BitConverter.SingleToInt32Bits(val2) < 0) - return 0.0f; - return 0.0f; } @@ -285,9 +282,6 @@ namespace ChocolArm64.Instruction if (BitConverter.DoubleToInt64Bits(val1) < 0 && BitConverter.DoubleToInt64Bits(val2) < 0) return -0.0; - if (BitConverter.DoubleToInt64Bits(val1) < 0 || BitConverter.DoubleToInt64Bits(val2) < 0) - return 0.0; - return 0.0; } @@ -302,11 +296,11 @@ namespace ChocolArm64.Instruction public static float MinF(float val1, float val2) { - if ((val1 == 0.0 && val2 >= 0.0) || (val1 >= 0.0 && val2 == 0.0)) + /*if ((val1 == 0.0 && val2 >= 0.0) || (val1 >= 0.0 && val2 == 0.0)) { if (BitConverter.SingleToInt32Bits(val1) < 0 || BitConverter.SingleToInt32Bits(val2) < 0) return -0.0f; - } + }*/ if (val1 == 0.0 && val2 == 0.0) { @@ -327,11 +321,11 @@ namespace ChocolArm64.Instruction public static double Min(double val1, double val2) { - if ((val1 == 0.0 && val2 >= 0.0) || (val1 >= 0.0 && val2 == 0.0)) + /*if ((val1 == 0.0 && val2 >= 0.0) || (val1 >= 0.0 && val2 == 0.0)) { if (BitConverter.DoubleToInt64Bits(val1) < 0 || BitConverter.DoubleToInt64Bits(val2) < 0) return -0.0; - } + }*/ if (val1 == 0.0 && val2 == 0.0) {