[all-commits] [llvm/llvm-project] 1a006a: [libc] Add Annex K qsort_s definition and tests

Victor Campos via All-commits all-commits at lists.llvm.org
Fri Jun 26 10:22:35 PDT 2026


  Branch: refs/heads/users/vhscampos/libc-annex-k-qsort_s
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a006abc6b36ba816f43a9424d710845ac0d2bc8
      https://github.com/llvm/llvm-project/commit/1a006abc6b36ba816f43a9424d710845ac0d2bc8
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M libc/config/baremetal/aarch64/entrypoints.txt
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/linux/aarch64/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/__qsortscompare_t.h
    M libc/include/stdlib.yaml
    M libc/src/stdlib/CMakeLists.txt
    A libc/src/stdlib/qsort_s.cpp
    A libc/src/stdlib/qsort_s.h
    M libc/test/src/stdlib/CMakeLists.txt
    A libc/test/src/stdlib/qsort_s_test.cpp

  Log Message:
  -----------
  [libc] Add Annex K qsort_s definition and tests

This patch introduces Annex K's `qsort_s`.

Since its semantics are very similar to the ones for `qsort_r`, the two
share the same testing logic, except that for `qsort_s` we also test the
constraint violation semantics.


  Commit: 8e855ff534c8394756b60a0249f18a810a57fc8f
      https://github.com/llvm/llvm-project/commit/8e855ff534c8394756b60a0249f18a810a57fc8f
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M libc/src/stdlib/qsort_s.cpp
    M libc/src/stdlib/qsort_s.h
    M libc/test/src/stdlib/qsort_s_test.cpp

  Log Message:
  -----------
  Address comments


  Commit: 1559d4c18d8172179f4ca943364ef7dedd65f518
      https://github.com/llvm/llvm-project/commit/1559d4c18d8172179f4ca943364ef7dedd65f518
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M libc/include/llvm-libc-types/__qsortscompare_t.h

  Log Message:
  -----------
  Fix file header to adhere to the standard


Compare: https://github.com/llvm/llvm-project/compare/b0763b4efe2a...1559d4c18d81

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list