15 references to GetSegmentShift
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (15)
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\SegmentedList`1.cs (2)
154
var newSegmentCount = (value + SegmentedArrayHelper.GetSegmentSize<T>() - 1) >> SegmentedArrayHelper.
GetSegmentShift
<T>();
165
var lastSegmentSize = value - ((newSegmentCount - 1) << SegmentedArrayHelper.
GetSegmentShift
<T>());