Created
August 31, 2020 08:47
-
-
Save korchoon/b5cef7e1f6525af446d1ebf8c76d43f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.CompilerServices; | |
static class HashUtils { | |
[MethodImpl(MethodImplOptions.AggressiveInlining)] | |
public static int CombineWith(this int hash1, int hash2) => (hash1 * 397) ^ hash2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment