7 references to SwapIfGreaterWithValues
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (7)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
750
SwapIfGreaterWithValues
(keys, values, comparer!, 0, 1);
756
SwapIfGreaterWithValues
(keys, values, comparer!, 0, 1);
757
SwapIfGreaterWithValues
(keys, values, comparer!, 0, 2);
758
SwapIfGreaterWithValues
(keys, values, comparer!, 1, 2);
792
SwapIfGreaterWithValues
(keys, values, comparer!, 0, middle); // swap the low with the mid point
793
SwapIfGreaterWithValues
(keys, values, comparer!, 0, hi); // swap the low with the high
794
SwapIfGreaterWithValues
(keys, values, comparer!, middle, hi); // swap the middle with the high