8 references to GetPrime
Microsoft.CodeAnalysis (8)
src\Dependencies\Collections\Internal\HashHelpers.cs (2)
89Debug.Assert(MaxPrimeArrayLength == GetPrime(MaxPrimeArrayLength), "Invalid MaxPrimeArrayLength"); 93return GetPrime(newSize);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
492var size = HashHelpers.GetPrime(capacity); 968var newSize = HashHelpers.GetPrime(capacity); 1002var newSize = HashHelpers.GetPrime(capacity);
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
890var newSize = HashHelpers.GetPrime(capacity); 954var newSize = HashHelpers.GetPrime(capacity); 998var size = HashHelpers.GetPrime(capacity);