3 ms·
Or without qsort_r, you could use a thread local variable: typedef typeof(dsq) dsq_f; _Thread_local static wide(dsq_f) wdsq; wdsq = CLOSURE(dsq_f,
by uecker 2mo ago
Or without qsort_r, you could use a thread local variable:
typedef typeof(dsq) dsq_f;
_Thread_local static wide(dsq_f) wdsq;
wdsq = CLOSURE(dsq_f, dsq);
https://godbolt.org/z/3e157c6b1 https://godbolt.org/z/3e157c6b1