From a2e2e3d3c0c73b36eb905e69f40b5b37b8c9e340 Mon Sep 17 00:00:00 2001 From: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> Date: Mon, 28 Jan 2019 01:52:16 +0100 Subject: [PATCH] Update SoftFloat.cs --- ChocolArm64/Instructions/SoftFloat.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ChocolArm64/Instructions/SoftFloat.cs b/ChocolArm64/Instructions/SoftFloat.cs index 39d279de19..3521ad152e 100644 --- a/ChocolArm64/Instructions/SoftFloat.cs +++ b/ChocolArm64/Instructions/SoftFloat.cs @@ -1545,9 +1545,9 @@ namespace ChocolArm64.Instructions return -value; } - private static float ZerosOrOnes(bool zeros) + private static float ZerosOrOnes(bool ones) { - return BitConverter.Int32BitsToSingle(!zeros ? 0 : -1); + return BitConverter.Int32BitsToSingle(ones ? -1 : 0); } private static float FPUnpack( @@ -2629,9 +2629,9 @@ namespace ChocolArm64.Instructions return -value; } - private static double ZerosOrOnes(bool zeros) + private static double ZerosOrOnes(bool ones) { - return BitConverter.Int64BitsToDouble(!zeros ? 0L : -1L); + return BitConverter.Int64BitsToDouble(ones ? -1L : 0L); } private static double FPUnpack(