36 references to Hash
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (36)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (2)
256int hashCode = Hash.FnvOffsetBias; 260hashCode = Hash.CombineFNVHash(hashCode, ToLower(str[i]));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
694hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
src\Compilers\Core\Portable\InternalUtilities\CharMemoryEqualityComparer.cs (1)
21public int GetHashCode(ReadOnlyMemory<char> mem) => Hash.GetFNVHashCode(mem.Span);
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (24)
64hashCode = Hash.Combine(value.GetHashCode(), hashCode); 84hashCode = Hash.Combine(value.GetHashCode(), hashCode); 107hashCode = Hash.Combine(value.GetHashCode(), hashCode); 133hashCode = Hash.Combine(value.GetHashCode(), hashCode); 158hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 178hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 204int hashCode = Hash.FnvOffsetBias; 208hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 225int hashCode = Hash.FnvOffsetBias; 233hashCode = unchecked((hashCode ^ b) * Hash.FnvPrime); 248int hashCode = Hash.FnvOffsetBias; 252hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 268return CombineFNVHash(Hash.FnvOffsetBias, data); 293int hashCode = Hash.FnvOffsetBias; 297hashCode = unchecked((hashCode ^ CaseInsensitiveComparison.ToLower(data[i])) * Hash.FnvPrime); 323return CombineFNVHash(Hash.FnvOffsetBias, text); 334int hashCode = Hash.FnvOffsetBias; 365int hashCode = Hash.FnvOffsetBias; 370hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime); 387return Hash.CombineFNVHash(Hash.FnvOffsetBias, ch); 401hashCode = unchecked((hashCode ^ ch) * Hash.FnvPrime); 416return unchecked((hashCode ^ ch) * Hash.FnvPrime); 430hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime);
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
42return Hash.GetFNVHashCode(s);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (7)
117var hashCode = Hash.GetFNVHashCode(chars, start, len); 151var hashCode = Hash.GetFNVHashCode(chars, start, len); 185var hashCode = Hash.GetFNVHashCode(chars); 219var hashCode = Hash.GetFNVHashCode(chars); 253var hashCode = Hash.GetFNVHashCode(chars); 567var hashCode = Hash.GetFNVHashCode(chars); 587int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);