20 references to GetSegmentShift
Microsoft.CodeAnalysis.CodeStyle (20)
src\Dependencies\Collections\SegmentedArray.cs (12)
486
var initialFirstSegment = _firstOffset >> SegmentedArrayHelper.
GetSegmentShift
<T>();
487
var initialSecondSegment = _secondOffset >> SegmentedArrayHelper.
GetSegmentShift
<T>();
501
var firstSegment = _firstSegments[(_completed + _firstOffset) >> SegmentedArrayHelper.
GetSegmentShift
<T>()];
502
var secondSegment = _secondSegments[(_completed + _secondOffset) >> SegmentedArrayHelper.
GetSegmentShift
<T>()];
589
var initialFirstSegment = (_completed + _firstOffset) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
590
var initialSecondSegment = (_completed + _secondOffset) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
637
var initialFirstSegment = (_firstOffset + _length - _completed - 1) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
638
var initialSecondSegment = (_secondOffset + _length - _completed - 1) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
731
var firstSegment = _offset >> SegmentedArrayHelper.
GetSegmentShift
<T>();
742
var segment = _segments[(_completed + _offset) >> SegmentedArrayHelper.
GetSegmentShift
<T>()];
780
var firstSegment = _offset >> SegmentedArrayHelper.
GetSegmentShift
<T>();
791
var segment = _segments[(_completed + _offset) >> SegmentedArrayHelper.
GetSegmentShift
<T>()];
src\Dependencies\Collections\SegmentedArray`1.cs (1)
48
return SegmentedArrayHelper.
GetSegmentShift
<T>();
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
675
var newSegmentCount = (newSize + SegmentedArrayHelper.GetSegmentSize<Entry>() - 1) >> SegmentedArrayHelper.
GetSegmentShift
<Entry>();
686
var lastSegmentSize = newSize - ((newSegmentCount - 1) << SegmentedArrayHelper.
GetSegmentShift
<Entry>());
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
929
var newSegmentCount = (newSize + SegmentedArrayHelper.GetSegmentSize<Entry>() - 1) >> SegmentedArrayHelper.
GetSegmentShift
<Entry>();
940
var lastSegmentSize = newSize - ((newSegmentCount - 1) << SegmentedArrayHelper.
GetSegmentShift
<Entry>());
src\Dependencies\Collections\SegmentedList`1.cs (3)
161
var newSegmentCount = (newSize + SegmentedArrayHelper.GetSegmentSize<T>() - 1) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
172
var lastSegmentSize = newSize - ((newSegmentCount - 1) << SegmentedArrayHelper.
GetSegmentShift
<T>());
543
var oldSegmentCount = (_items.Length + SegmentedArrayHelper.GetSegmentSize<T>() - 1) >> SegmentedArrayHelper.
GetSegmentShift
<T>();