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