summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-hash.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/core/slang-hash.h b/source/core/slang-hash.h
index b2a583744..248d11303 100644
--- a/source/core/slang-hash.h
+++ b/source/core/slang-hash.h
@@ -169,6 +169,14 @@ namespace Slang
return (left * 16777619) ^ right;
}
+ inline HashCode combineHash(HashCode hash0, HashCode hash1, HashCode hash2)
+ {
+ auto h = hash0;
+ h = combineHash(h, hash1);
+ h = combineHash(h, hash2);
+ return h;
+ }
+
struct Hasher
{
public: