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