re-design qsort() selection in cover

centralizes auto detection tests,
then distribute the outcome in all the places where it's active.
This commit is contained in:
Yann Collet
2025-03-11 14:10:35 -07:00
parent 51b6e79f65
commit dcf675886b
3 changed files with 46 additions and 15 deletions
+5 -3
View File
@@ -193,9 +193,11 @@ The file structure is designed to make this selection manually achievable for an
and assembly decoding loops. You may want to use this macro if these loops are
slower on your platform.
- The macro `ZSTD_USE_C90_QSORT` forces usage of C90's `qsort()`,
for situations where the code cannot determine that `qsort_r()` is not supported,
such as, for example, older versions of `musl`.
- The macro `ZDICT_QSORT` can enforce selection of a specific sorting variant.
It can be notably set as `ZDICT_QSORT=ZDICT_QSORT_C90`,
for situations where autodetection fails,
for example with older versions of `musl`.
Other selectable suffixes are `_GNU`, `_APPLE` and `_MSVC`.
#### Windows : using MinGW+MSYS to create DLL