Use better hash

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

View file

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