33 references to Hash
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (33)
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 (22)
66hashCode = Hash.Combine(value.GetHashCode(), hashCode); 86hashCode = Hash.Combine(value.GetHashCode(), hashCode); 109hashCode = Hash.Combine(value.GetHashCode(), hashCode); 135hashCode = Hash.Combine(value.GetHashCode(), hashCode); 160hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 180hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 206int hashCode = Hash.FnvOffsetBias; 210hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 227int hashCode = Hash.FnvOffsetBias; 235hashCode = unchecked((hashCode ^ b) * Hash.FnvPrime); 250int hashCode = Hash.FnvOffsetBias; 254hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 270return CombineFNVHash(Hash.FnvOffsetBias, data); 295int hashCode = Hash.FnvOffsetBias; 299hashCode = unchecked((hashCode ^ CaseInsensitiveComparison.ToLower(data[i])) * Hash.FnvPrime); 313return CombineFNVHash(Hash.FnvOffsetBias, text); 324int hashCode = Hash.FnvOffsetBias; 367return Hash.CombineFNVHash(Hash.FnvOffsetBias, ch); 381hashCode = unchecked((hashCode ^ ch) * Hash.FnvPrime); 396return unchecked((hashCode ^ ch) * Hash.FnvPrime); 410hashCode = 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 (6)
128var hashCode = Hash.GetFNVHashCode(chars); 162var hashCode = Hash.GetFNVHashCode(chars, start, len); 196var hashCode = Hash.GetFNVHashCode(chars); 230var hashCode = Hash.GetFNVHashCode(chars); 264var hashCode = Hash.GetFNVHashCode(chars); 585int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);