MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / MergeSort

Function MergeSort

Source/Engine/Core/Collections/Sorting.h:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79 template<typename T>
80 static void MergeSort(T* data, T* tmp, int32 start, int32 end)
81 {
82 if (start >= end)
83 return;
84 const int32 mid = (start + end) / 2;
85 MergeSort(data, tmp, start, mid);
86 MergeSort(data, tmp, mid + 1, end);
87 Merge(data, tmp, start, mid, end);
88 }
89
90public:
91 /// <summary>

Callers 2

SortDrawCallsMethod · 0.85
FlushNewObjectsMethod · 0.85

Calls 5

MergeFunction · 0.70
FreeFunction · 0.50
ResizeMethod · 0.45
CountMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected