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;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue