Update AVectorHelper.cs

This commit is contained in:
LDj3SNuD 2018-07-02 02:04:55 +02:00 committed by GitHub
commit c187c00e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,14 +93,6 @@ namespace ChocolArm64.Instruction
Value < ulong.MinValue ? ulong.MinValue : (ulong)Value; Value < ulong.MinValue ? ulong.MinValue : (ulong)Value;
} }
public static int CountSetBits8(byte Value)
{
return ((Value >> 0) & 1) + ((Value >> 1) & 1) +
((Value >> 2) & 1) + ((Value >> 3) & 1) +
((Value >> 4) & 1) + ((Value >> 5) & 1) +
((Value >> 6) & 1) + (Value >> 7);
}
public static double Max(double LHS, double RHS) public static double Max(double LHS, double RHS)
{ {
if (LHS == 0.0 && RHS == 0.0) if (LHS == 0.0 && RHS == 0.0)
@ -646,4 +638,4 @@ namespace ChocolArm64.Instruction
throw new PlatformNotSupportedException(); throw new PlatformNotSupportedException();
} }
} }
} }