diff options
Diffstat (limited to 'source/core/hash.h')
| -rw-r--r-- | source/core/hash.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/core/hash.h b/source/core/hash.h index 07a14099b..dd2086305 100644 --- a/source/core/hash.h +++ b/source/core/hash.h @@ -95,7 +95,10 @@ namespace Slang return PointerHash<std::is_pointer<TKey>::value>::GetHashCode(key); } - + inline int combineHash(int left, int right) + { + return (left * 16777619) ^ right; + } } #endif
\ No newline at end of file |
