Use better hash
This commit is contained in:
parent
e766eb5b0c
commit
ae6c79e176
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue