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