31 references to Hash
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (31)
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); 293int hashCode = Hash.FnvOffsetBias; 297hashCode = unchecked((hashCode ^ CaseInsensitiveComparison.ToLower(data[i])) * Hash.FnvPrime); 311return CombineFNVHash(Hash.FnvOffsetBias, text); 322int hashCode = Hash.FnvOffsetBias; 336hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime); 365return Hash.CombineFNVHash(Hash.FnvOffsetBias, ch); 387return unchecked((hashCode ^ ch) * Hash.FnvPrime); 401hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
33return Hash.GetFNVHashCode(obj.Span);
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
42return Hash.GetFNVHashCode(s);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (3)
124var hashCode = Hash.GetFNVHashCode(chars); 164var hashCode = Hash.GetFNVHashCode(chars); 391int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);