[all-commits] [llvm/llvm-project] b49c78: [libc++] Fix constraints in `__countr_zero` and `_...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Wed Jun 11 05:30:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b49c7896c0a31ca618098b52a28eb87dff625b8f
      https://github.com/llvm/llvm-project/commit/b49c7896c0a31ca618098b52a28eb87dff625b8f
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M libcxx/include/__bit/countr.h
    M libcxx/include/__bit/popcount.h

  Log Message:
  -----------
  [libc++] Fix constraints in `__countr_zero` and `__popcount`

Currently these two functions are constrained on `is_unsigned`, which is
more permissive than what is required by the standard for their public
counterparts. This fixes the constraints to match the public functions
by using `__libcpp_is_unsigned_integer` instead.



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