[all-commits] [llvm/llvm-project] d3074f: [libc] Add qsort_r
michaelrj-google via All-commits
all-commits at lists.llvm.org
Mon Jun 12 11:12:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3074f16a6f6b3447bf728d8a6d19f35f02179db
https://github.com/llvm/llvm-project/commit/d3074f16a6f6b3447bf728d8a6d19f35f02179db
Author: Michael Jones <michaelrj at google.com>
Date: 2023-06-12 (Mon, 12 Jun 2023)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/api.td
M libc/config/linux/arm/entrypoints.txt
M libc/config/linux/riscv64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/CMakeLists.txt
M libc/include/llvm-libc-types/CMakeLists.txt
A libc/include/llvm-libc-types/__qsortrcompare_t.h
M libc/spec/gnu_ext.td
M libc/src/stdlib/CMakeLists.txt
M libc/src/stdlib/qsort.cpp
A libc/src/stdlib/qsort_r.cpp
A libc/src/stdlib/qsort_r.h
A libc/src/stdlib/qsort_util.h
M libc/test/src/stdlib/CMakeLists.txt
A libc/test/src/stdlib/qsort_r_test.cpp
M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
M utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
Log Message:
-----------
[libc] Add qsort_r
This patch adds the reentrent qsort entrypoint, qsort_r. This is done by
extending the qsort functionality and moving it to a shared utility
header. For this reason the qsort_r tests focus mostly on the places
where it differs from qsort, since they share the same sorting code.
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D152467
More information about the All-commits
mailing list