[libcxx-commits] [libcxx] [libcxx] Use generic builtins for popcount, clz and ctz (PR #86563)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 26 11:29:38 PDT 2024


================
@@ -249,7 +249,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI inline bool __multipleOfPowerOf2(const uint64_t __value, const uint32_t __p) {
   _LIBCPP_ASSERT_INTERNAL(__value != 0, "");
   _LIBCPP_ASSERT_INTERNAL(__p < 64, "");
-  // __builtin_ctzll doesn't appear to be faster here.
+  // __builtin_ctzll/__builtin_ctzg doesn't appear to be faster here.
----------------
mordante wrote:

Please undo the changes to the ryu files. This is code used from an external project. I like to keep the deviation from the original source minimal.

https://github.com/llvm/llvm-project/pull/86563


More information about the libcxx-commits mailing list