fix fmin/fmax PR 3
This commit is contained in:
parent
f0d3106dcb
commit
893274a1ad
1 changed files with 0 additions and 12 deletions
|
@ -296,12 +296,6 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public static float MinF(float val1, float val2)
|
public static float MinF(float val1, float val2)
|
||||||
{
|
{
|
||||||
/*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)
|
if (val1 == 0.0 && val2 == 0.0)
|
||||||
{
|
{
|
||||||
if (BitConverter.SingleToInt32Bits(val1) < 0 || BitConverter.SingleToInt32Bits(val2) < 0)
|
if (BitConverter.SingleToInt32Bits(val1) < 0 || BitConverter.SingleToInt32Bits(val2) < 0)
|
||||||
|
@ -321,12 +315,6 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public static double Min(double val1, double val2)
|
public static double Min(double val1, double val2)
|
||||||
{
|
{
|
||||||
/*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)
|
if (val1 == 0.0 && val2 == 0.0)
|
||||||
{
|
{
|
||||||
if (BitConverter.DoubleToInt64Bits(val1) < 0 || BitConverter.DoubleToInt64Bits(val2) < 0)
|
if (BitConverter.DoubleToInt64Bits(val1) < 0 || BitConverter.DoubleToInt64Bits(val2) < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue