From 85762eaabd9a5df6d1865e1a67bd5736edc0c293 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 10 Dec 2018 21:52:02 -0300 Subject: [PATCH] Implement the == and != operators --- ChocolArm64/Translation/LocalAlloc.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ChocolArm64/Translation/LocalAlloc.cs b/ChocolArm64/Translation/LocalAlloc.cs index 35d56e10ad..763be6190d 100644 --- a/ChocolArm64/Translation/LocalAlloc.cs +++ b/ChocolArm64/Translation/LocalAlloc.cs @@ -86,6 +86,16 @@ namespace ChocolArm64.Translation { 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;