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