Implement the == and != operators

This commit is contained in:
gdkchan 2018-12-10 21:52:02 -03:00
commit 85762eaabd

View file

@ -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;