aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Instruction/AVectorHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Instruction/AVectorHelper.cs')
-rw-r--r--ChocolArm64/Instruction/AVectorHelper.cs80
1 files changed, 0 insertions, 80 deletions
diff --git a/ChocolArm64/Instruction/AVectorHelper.cs b/ChocolArm64/Instruction/AVectorHelper.cs
index a0f887b0..b2d53740 100644
--- a/ChocolArm64/Instruction/AVectorHelper.cs
+++ b/ChocolArm64/Instruction/AVectorHelper.cs
@@ -93,86 +93,6 @@ namespace ChocolArm64.Instruction
Value < ulong.MinValue ? ulong.MinValue : (ulong)Value;
}
- public static double Max(double LHS, double RHS)
- {
- if (LHS == 0.0 && RHS == 0.0)
- {
- if (BitConverter.DoubleToInt64Bits(LHS) < 0 &&
- BitConverter.DoubleToInt64Bits(RHS) < 0)
- return -0.0;
-
- return 0.0;
- }
-
- if (LHS > RHS)
- return LHS;
-
- if (double.IsNaN(LHS))
- return LHS;
-
- return RHS;
- }
-
- public static float MaxF(float LHS, float RHS)
- {
- if (LHS == 0.0 && RHS == 0.0)
- {
- if (BitConverter.SingleToInt32Bits(LHS) < 0 &&
- BitConverter.SingleToInt32Bits(RHS) < 0)
- return -0.0f;
-
- return 0.0f;
- }
-
- if (LHS > RHS)
- return LHS;
-
- if (float.IsNaN(LHS))
- return LHS;
-
- return RHS;
- }
-
- public static double Min(double LHS, double RHS)
- {
- if (LHS == 0.0 && RHS == 0.0)
- {
- if (BitConverter.DoubleToInt64Bits(LHS) < 0 ||
- BitConverter.DoubleToInt64Bits(RHS) < 0)
- return -0.0;
-
- return 0.0;
- }
-
- if (LHS < RHS)
- return LHS;
-
- if (double.IsNaN(LHS))
- return LHS;
-
- return RHS;
- }
-
- public static float MinF(float LHS, float RHS)
- {
- if (LHS == 0.0 && RHS == 0.0)
- {
- if (BitConverter.SingleToInt32Bits(LHS) < 0 ||
- BitConverter.SingleToInt32Bits(RHS) < 0)
- return -0.0f;
-
- return 0.0f;
- }
-
- if (LHS < RHS)
- return LHS;
-
- if (float.IsNaN(LHS))
- return LHS;
-
- return RHS;
- }
-
public static double Round(double Value, int Fpcr)
{
switch ((ARoundMode)((Fpcr >> 22) & 3))