15 references to HashHelpers
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (15)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (7)
494
var size =
HashHelpers
.GetPrime(capacity);
500
_fastModMultiplier =
HashHelpers
.GetFastModMultiplier((uint)size);
644
=> Resize(
HashHelpers
.ExpandPrime(_count));
658
_fastModMultiplier =
HashHelpers
.GetFastModMultiplier((uint)newSize);
970
var newSize =
HashHelpers
.GetPrime(capacity);
1004
var newSize =
HashHelpers
.GetPrime(capacity);
1156
return ref buckets[(int)
HashHelpers
.FastMod(hashCode, (uint)buckets.Length, _fastModMultiplier)];
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (8)
163
var threshold =
HashHelpers
.ExpandPrime(source.Count + 1);
288
return ref buckets[(int)
HashHelpers
.FastMod((uint)hashCode, (uint)buckets.Length, _fastModMultiplier)];
892
var newSize =
HashHelpers
.GetPrime(capacity);
897
private void Resize() => Resize(
HashHelpers
.ExpandPrime(_count));
911
_fastModMultiplier =
HashHelpers
.GetFastModMultiplier((uint)newSize);
956
var newSize =
HashHelpers
.GetPrime(capacity);
1000
var size =
HashHelpers
.GetPrime(capacity);
1008
_fastModMultiplier =
HashHelpers
.GetFastModMultiplier((uint)size);