File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- // ToDo : __builtin_clzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
9
+ // TODO : __builtin_clzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
10
10
// refactor this code to exclusively use __builtin_clzg.
11
11
12
12
#ifndef _LIBCPP___BIT_COUNTL_H
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- // ToDo : __builtin_ctzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
9
+ // TODO : __builtin_ctzg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
10
10
// refactor this code to exclusively use __builtin_ctzg.
11
11
12
12
#ifndef _LIBCPP___BIT_COUNTR_H
@@ -45,7 +45,7 @@ _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __coun
45
45
if (__t == 0 )
46
46
return numeric_limits<_Tp>::digits;
47
47
48
- return __builtin_ctz (__t );
48
+ return __builtin_ctzg (__t );
49
49
}
50
50
51
51
#else // __has_builtin(__builtin_ctzg)
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- // ToDo : __builtin_popcountg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
9
+ // TODO : __builtin_popcountg is available since Clang 19 and GCC 14. When support for older versions is dropped, we can
10
10
// refactor this code to exclusively use __builtin_popcountg.
11
11
12
12
#ifndef _LIBCPP___BIT_POPCOUNT_H
Original file line number Diff line number Diff line change 43
43
// Avoid formatting to keep the changes with the original code minimal.
44
44
// clang-format off
45
45
46
- #include < __bit/countr.h>
47
46
#include < __charconv/chars_format.h>
48
47
#include < __charconv/to_chars_result.h>
49
48
#include < __config>
You can’t perform that action at this time.
0 commit comments