summaryrefslogtreecommitdiffstats
path: root/source/core/hash.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-08-17 12:18:37 -0700
committerGitHub <noreply@github.com>2017-08-17 12:18:37 -0700
commit1965c3f3f265c43c8d1d96bb49d0850ce5d53cc3 (patch)
treeceb6f8b5f4d3c7e941f4edd47984b426d03fb980 /source/core/hash.h
parent5230ad2edb28e176d0d7d2a9873ffb8f65285269 (diff)
parent5de3003af561bad33680940ab1809622c428e94b (diff)
Merge pull request #169 from tfoleyNV/ir
IR generation cleanup work
Diffstat (limited to 'source/core/hash.h')
-rw-r--r--source/core/hash.h5
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