Use better hash

This commit is contained in:
gdkchan 2018-12-10 16:09:12 -03:00
parent e766eb5b0c
commit ae6c79e176

View file

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
namespace ChocolArm64.Translation
@ -83,12 +84,7 @@ namespace ChocolArm64.Translation
public override int GetHashCode()
{
return Block.GetHashCode() * 23 ^
Entry.GetHashCode() * 23 ^
IntInputs.GetHashCode() * 23 ^
VecInputs.GetHashCode() * 23 ^
IntOutputs.GetHashCode() * 23 ^
VecOutputs.GetHashCode();
return HashCode.Combine(Block, Entry, IntInputs, VecInputs, IntOutputs, VecOutputs);
}
}