[libcxx-commits] [libcxx] [libcxx] Use generic builtins for popcount, clz and ctz (PR #86563)
Nick Desaulniers via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 29 12:49:40 PDT 2024
================
@@ -38,6 +41,9 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR int __libcpp_cl
#ifndef _LIBCPP_HAS_NO_INT128
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR int __libcpp_clz(__uint128_t __x) _NOEXCEPT {
+# if __has_builtin(__builtin_clzg)
----------------
nickdesaulniers wrote:
These headers seem to not put whitespace after the `#`. Mind staying consistent in this file (and libcxx/include/__bit/popcount.h)? Then we should be good to go. Perhaps your editor is trying to auto indent these.
https://github.com/llvm/llvm-project/pull/86563
More information about the libcxx-commits
mailing list