From 5285bc1802a010dfc848b5604d84789729d9fb41 Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Wed, 27 Mar 2024 02:17:21 +0100 Subject: [PATCH] Fix typo --- libcxx/include/__bit/countl.h | 2 +- libcxx/include/__bit/countr.h | 4 ++-- libcxx/include/__bit/popcount.h | 2 +- libcxx/src/include/ryu/ryu.h | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libcxx/include/__bit/countl.h b/libcxx/include/__bit/countl.h index 21bdde9bbe4c8..5e71deb43fae2 100644 --- a/libcxx/include/__bit/countl.h +++ b/libcxx/include/__bit/countl.h @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -// ToDo: __builtin_clzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can +// TODO: __builtin_clzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can // refactor this code to exclusively use __builtin_clzg. #ifndef _LIBCPP___BIT_COUNTL_H diff --git a/libcxx/include/__bit/countr.h b/libcxx/include/__bit/countr.h index a01ec96417f08..8d345d72d1727 100644 --- a/libcxx/include/__bit/countr.h +++ b/libcxx/include/__bit/countr.h @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -// ToDo: __builtin_ctzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can +// TODO: __builtin_ctzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can // refactor this code to exclusively use __builtin_ctzg. #ifndef _LIBCPP___BIT_COUNTR_H @@ -45,7 +45,7 @@ _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __coun if (__t == 0) return numeric_limits<_Tp>::digits; - return __builtin_ctz(__t); + return __builtin_ctzg(__t); } #else // __has_builtin(__builtin_ctzg) diff --git a/libcxx/include/__bit/popcount.h b/libcxx/include/__bit/popcount.h index 88c967d67c60a..a07e9e6ffc56e 100644 --- a/libcxx/include/__bit/popcount.h +++ b/libcxx/include/__bit/popcount.h @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -// ToDo: __builtin_popcountg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can +// TODO: __builtin_popcountg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can // refactor this code to exclusively use __builtin_popcountg. #ifndef _LIBCPP___BIT_POPCOUNT_H diff --git a/libcxx/src/include/ryu/ryu.h b/libcxx/src/include/ryu/ryu.h index de1744ba20a0e..7b19ecfec5915 100644 --- a/libcxx/src/include/ryu/ryu.h +++ b/libcxx/src/include/ryu/ryu.h @@ -43,7 +43,6 @@ // Avoid formatting to keep the changes with the original code minimal. // clang-format off -#include <__bit/countr.h> #include <__charconv/chars_format.h> #include <__charconv/to_chars_result.h> #include <__config>