15 references to HashHelpers
Microsoft.CodeAnalysis (15)
SegmentedDictionary`2.cs (7)
455var size = HashHelpers.GetPrime(capacity); 461_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)size); 646=> Resize(HashHelpers.ExpandPrime(_count)); 660_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)newSize); 940var newSize = HashHelpers.GetPrime(capacity); 974var newSize = HashHelpers.GetPrime(capacity); 1120return ref buckets[(int)HashHelpers.FastMod(hashCode, (uint)buckets.Length, _fastModMultiplier)];
SegmentedHashSet`1.cs (8)
146var threshold = HashHelpers.ExpandPrime(source.Count + 1); 294return ref buckets[(int)HashHelpers.FastMod((uint)hashCode, (uint)buckets.Length, _fastModMultiplier)]; 872var newSize = HashHelpers.GetPrime(capacity); 877private void Resize() => Resize(HashHelpers.ExpandPrime(_count)); 891_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)newSize); 914var newSize = HashHelpers.GetPrime(capacity); 958var size = HashHelpers.GetPrime(capacity); 966_fastModMultiplier = HashHelpers.GetFastModMultiplier((uint)size);