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