[libc-commits] [PATCH] D152467: [libc] Add qsort_r
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jun 8 14:09:38 PDT 2023
michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue, leonardchan.
Herald added subscribers: libc-commits, luke, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: jplehr, pcwang-thead, sstefan1.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152467
Files:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/arm/entrypoints.txt
libc/config/linux/riscv64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/__qsortrcompare_t.h
libc/spec/gnu_ext.td
libc/src/stdlib/CMakeLists.txt
libc/src/stdlib/qsort.cpp
libc/src/stdlib/qsort_r.cpp
libc/src/stdlib/qsort_r.h
libc/src/stdlib/qsort_util.h
libc/test/src/stdlib/CMakeLists.txt
libc/test/src/stdlib/qsort_r_test.cpp
utils/bazel/llvm-project-overlay/libc/BUILD.bazel
utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152467.529718.patch
Type: text/x-patch
Size: 22850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230608/872794d0/attachment-0001.bin>
More information about the libc-commits
mailing list