MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / srt

Method srt

include/daScript/simulate/aot.h:3579–3585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3577 template <typename CompareFn, typename TT>
3578 struct sscblk_array {
3579 static __forceinline void srt ( Array & arr, int32_t, int32_t, CompareFn && cmp, Context * context, LineInfoArg * at ) {
3580 if ( arr.size<=1 ) return;
3581 array_lock(*context, arr, at);
3582 auto sdata = (TT *) arr.data;
3583 das_stable_sort (sdata, sdata + arr.size, cmp);
3584 array_unlock(*context, arr, at);
3585 }
3586 static __forceinline void srtr ( Array & arr, int32_t elemSize, int32_t length, CompareFn && cmp, Context * context, LineInfoArg * lineinfo ) {
3587 srt(arr,elemSize,length,das::forward<CompareFn>(cmp),context,lineinfo);
3588 }

Callers

nothing calls this directly

Calls 3

array_lockFunction · 0.85
das_stable_sortFunction · 0.85
array_unlockFunction · 0.85

Tested by

no test coverage detected