41 references to SegmentedArrayHelper
Microsoft.Build.Framework (41)
ArraySortHelper.cs (8)
147
if (partitionSize <=
SegmentedArrayHelper
.IntrosortSizeThreshold)
185
Debug.Assert(keys.Length >=
SegmentedArrayHelper
.IntrosortSizeThreshold);
425
if (partitionSize <=
SegmentedArrayHelper
.IntrosortSizeThreshold)
466
Debug.Assert(keys.Length >=
SegmentedArrayHelper
.IntrosortSizeThreshold);
741
if (partitionSize <=
SegmentedArrayHelper
.IntrosortSizeThreshold)
779
Debug.Assert(keys.Length >=
SegmentedArrayHelper
.IntrosortSizeThreshold);
982
if (partitionSize <=
SegmentedArrayHelper
.IntrosortSizeThreshold)
1020
Debug.Assert(keys.Length >=
SegmentedArrayHelper
.IntrosortSizeThreshold);
SegmentedArray.cs (23)
480
var initialFirstSegment = _firstOffset >>
SegmentedArrayHelper
.GetSegmentShift<T>();
481
var initialSecondSegment = _secondOffset >>
SegmentedArrayHelper
.GetSegmentShift<T>();
482
var offset = _firstOffset &
SegmentedArrayHelper
.GetOffsetMask<T>();
483
Debug.Assert(offset == (_secondOffset &
SegmentedArrayHelper
.GetOffsetMask<T>()), "Aligned views must start at the same segment offset");
495
var firstSegment = _firstSegments[(_completed + _firstOffset) >>
SegmentedArrayHelper
.GetSegmentShift<T>()];
496
var secondSegment = _secondSegments[(_completed + _secondOffset) >>
SegmentedArrayHelper
.GetSegmentShift<T>()];
497
var currentSegmentLength = Math.Min(
SegmentedArrayHelper
.GetSegmentSize<T>(), _length - _completed);
583
var initialFirstSegment = (_completed + _firstOffset) >>
SegmentedArrayHelper
.GetSegmentShift<T>();
584
var initialSecondSegment = (_completed + _secondOffset) >>
SegmentedArrayHelper
.GetSegmentShift<T>();
585
var firstOffset = (_completed + _firstOffset) &
SegmentedArrayHelper
.GetOffsetMask<T>();
586
var secondOffset = (_completed + _secondOffset) &
SegmentedArrayHelper
.GetOffsetMask<T>();
631
var initialFirstSegment = (_firstOffset + _length - _completed - 1) >>
SegmentedArrayHelper
.GetSegmentShift<T>();
632
var initialSecondSegment = (_secondOffset + _length - _completed - 1) >>
SegmentedArrayHelper
.GetSegmentShift<T>();
633
var firstOffset = (_firstOffset + _length - _completed - 1) &
SegmentedArrayHelper
.GetOffsetMask<T>();
634
var secondOffset = (_secondOffset + _length - _completed - 1) &
SegmentedArrayHelper
.GetOffsetMask<T>();
725
var firstSegment = _offset >>
SegmentedArrayHelper
.GetSegmentShift<T>();
726
var offset = _offset &
SegmentedArrayHelper
.GetOffsetMask<T>();
736
var segment = _segments[(_completed + _offset) >>
SegmentedArrayHelper
.GetSegmentShift<T>()];
737
_current = segment.AsMemory().Slice(0, Math.Min(
SegmentedArrayHelper
.GetSegmentSize<T>(), _length - _completed));
774
var firstSegment = _offset >>
SegmentedArrayHelper
.GetSegmentShift<T>();
775
var offset = _offset &
SegmentedArrayHelper
.GetOffsetMask<T>();
785
var segment = _segments[(_completed + _offset) >>
SegmentedArrayHelper
.GetSegmentShift<T>()];
786
_current = segment.AsMemory().Slice(0, Math.Min(
SegmentedArrayHelper
.GetSegmentSize<T>(), _length - _completed));
SegmentedArray`1.cs (7)
35
[MethodImpl(
SegmentedArrayHelper
.FastPathMethodImplOptions)]
38
return
SegmentedArrayHelper
.GetSegmentSize<T>();
47
[MethodImpl(
SegmentedArrayHelper
.FastPathMethodImplOptions)]
50
return
SegmentedArrayHelper
.GetSegmentShift<T>();
59
[MethodImpl(
SegmentedArrayHelper
.FastPathMethodImplOptions)]
62
return
SegmentedArrayHelper
.GetOffsetMask<T>();
118
[MethodImpl(
SegmentedArrayHelper
.FastPathMethodImplOptions)]
SegmentedArrayHelper.cs (3)
127
=>
SegmentedArrayHelper
.CalculateSegmentSize(elementSize);
130
=>
SegmentedArrayHelper
.CalculateSegmentShift(elementSize);
133
=>
SegmentedArrayHelper
.CalculateOffsetMask(elementSize);