15 references to HashHelpers
Microsoft.CodeAnalysis (15)
src\Dependencies\Collections\SegmentedDictionary`2.cs (7)
492var size = HashHelpers.GetPrime(capacity); 498_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)size); 642=> Resize(HashHelpers.ExpandPrime(_count)); 656_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)newSize); 968var newSize = HashHelpers.GetPrime(capacity); 1002var newSize = HashHelpers.GetPrime(capacity); 1154return ref buckets[(int)HashHelpers.FastMod(hashCode, (uint)buckets.Length, _fastModMultiplier)];
src\Dependencies\Collections\SegmentedHashSet`1.cs (8)
161var threshold = HashHelpers.ExpandPrime(source.Count + 1); 286return ref buckets[(int)HashHelpers.FastMod((uint)hashCode, (uint)buckets.Length, _fastModMultiplier)]; 890var newSize = HashHelpers.GetPrime(capacity); 895private void Resize() => Resize(HashHelpers.ExpandPrime(_count)); 909_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)newSize); 954var newSize = HashHelpers.GetPrime(capacity); 998var size = HashHelpers.GetPrime(capacity); 1006_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)size);