Optimize for the 0 case when op1 != op2
This commit is contained in:
parent
e94947c7db
commit
c9cd32602e
1 changed files with 4 additions and 4 deletions
|
@ -304,7 +304,7 @@ namespace ChocolArm64.Instruction
|
|||
return op1;
|
||||
}
|
||||
|
||||
if (op1 <= op2 && op2 != 0)
|
||||
if (op1 < op2 || (op1 == op2 && op2 != 0))
|
||||
{
|
||||
return op2;
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ namespace ChocolArm64.Instruction
|
|||
return op1;
|
||||
}
|
||||
|
||||
if (op1 <= op2 && op2 != 0)
|
||||
if (op1 < op2 || (op1 == op2 && op2 != 0))
|
||||
{
|
||||
return op2;
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ namespace ChocolArm64.Instruction
|
|||
return op1;
|
||||
}
|
||||
|
||||
if (op1 >= op2 && op2 != 0)
|
||||
if (op1 > op2 || (op1 == op2 && op2 != 0))
|
||||
{
|
||||
return op2;
|
||||
}
|
||||
|
@ -431,7 +431,7 @@ namespace ChocolArm64.Instruction
|
|||
return op1;
|
||||
}
|
||||
|
||||
if (op1 >= op2 && op2 != 0)
|
||||
if (op1 > op2 || (op1 == op2 && op2 != 0))
|
||||
{
|
||||
return op2;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue