[all-commits] [llvm/llvm-project] 058ca1: [libc++] Implement `<bit>` parts of P3793R2 Better...

Jan Schultke via All-commits all-commits at lists.llvm.org
Tue Sep 15 07:03:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 058ca1274446c7fa27b193237a90c21dddf7833c
      https://github.com/llvm/llvm-project/commit/058ca1274446c7fa27b193237a90c21dddf7833c
  Author: Jan Schultke <me at eisenwave.net>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M libcxx/docs/FeatureTestMacroTable.rst
    M libcxx/docs/ReleaseNotes/24.rst
    M libcxx/docs/Status/Cxx29Papers.csv
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__bit/shift.h
    M libcxx/include/bit
    M libcxx/include/module.modulemap.in
    M libcxx/include/version
    M libcxx/modules/std/bit.inc
    M libcxx/test/libcxx/utilities/bit/nodiscard.verify.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/bit.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
    A libcxx/test/std/numerics/bit/bitops.shift/shl.pass.cpp
    A libcxx/test/std/numerics/bit/bitops.shift/shr.pass.cpp
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Implement `<bit>` parts of P3793R2 Better shifting (#219389)

Partially implements #204401

That is, the scalar `<bit>` parts are implemented, but the `<simd>`
overloads are missing. Notice that only `__cpp_lib_bitops` is set to
`202606L`. `__cpp_lib_simd_bitops` is missing.

The implementations of `shl` and `shr` are based on the reference
implementation in the paper. The test code is partially AI-generated and
inspired by the test code for `rotl` or `rotr`, but comes with
significant modernizations.



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