Merge pull request #3199 from lambdageek/dev/proxy-setter
[mono.git] / mcs / class / System.Numerics.Vectors / System.Numerics / HashCodeHelper.cs
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 namespace System.Numerics
6 {
7     internal static class HashCodeHelper
8     {
9         /// <summary>
10         /// Combines two hash codes, useful for combining hash codes of individual vector elements
11         /// </summary>
12         internal static int CombineHashCodes(int h1, int h2)
13         {
14             return (((h1 << 5) + h1) ^ h2);
15         }
16     }
17 }