Implement the == and != operators
This commit is contained in:
parent
ae6c79e176
commit
85762eaabd
1 changed files with 10 additions and 0 deletions
|
@ -86,6 +86,16 @@ namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
return HashCode.Combine(Block, Entry, IntInputs, VecInputs, IntOutputs, VecOutputs);
|
return HashCode.Combine(Block, Entry, IntInputs, VecInputs, IntOutputs, VecOutputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool operator ==(BlockIo lhs, BlockIo rhs)
|
||||||
|
{
|
||||||
|
return lhs.Equals(rhs);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool operator !=(BlockIo lhs, BlockIo rhs)
|
||||||
|
{
|
||||||
|
return !(lhs == rhs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private const int MaxOptGraphLength = 40;
|
private const int MaxOptGraphLength = 40;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue