#ifndef LLVM_LIBC_SRC_STDLIB_QSORT_UTIL_H
#define LLVM_LIBC_SRC_STDLIB_QSORT_UTIL_H
#include "src/stdlib/heap_sort.h"
#include "src/stdlib/quick_sort.h"
#define LIBC_QSORT_QUICK_SORT …
#define LIBC_QSORT_HEAP_SORT …
#ifndef LIBC_QSORT_IMPL
#define LIBC_QSORT_IMPL …
#endif
#if (LIBC_QSORT_IMPL != LIBC_QSORT_QUICK_SORT && \
LIBC_QSORT_IMPL != LIBC_QSORT_HEAP_SORT)
#error "LIBC_QSORT_IMPL is not recognized."
#endif
namespace LIBC_NAMESPACE_DECL {
namespace internal {
#if LIBC_QSORT_IMPL == LIBC_QSORT_QUICK_SORT
constexpr auto sort = …;
#elif LIBC_QSORT_IMPL == LIBC_QSORT_HEAP_SORT
constexpr auto sort = heap_sort;
#endif
}
}
#endif