Switching to qsort instead of one of the three alternatives has the advantage of making the code universal across compilers and machines, removing the need for machine-specific #if code blocks. Those blocks are brittle to the addition of new machines/compilers to the support list.
Switching to
qsort
instead of one of the three alternatives has the advantage of making the code universal across compilers and machines, removing the need for machine-specific#if
code blocks. Those blocks are brittle to the addition of new machines/compilers to the support list.This has been discussed at https://github.com/TEOS-10/GSW-R/issues/41#issuecomment-320594946