Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Mar 27, 2024
1 parent ce7a278 commit 5285bc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libcxx/include/__bit/countl.h
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions libcxx/include/__bit/countr.h
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libcxx/include/__bit/popcount.h
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion libcxx/src/include/ryu/ryu.h
Expand Up @@ -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>
Expand Down

0 comments on commit 5285bc1

Please sign in to comment.