diff --git a/libstdc++-v3/include/std/bit b/libstdc++-v3/include/std/bit index 1d99c807c4a..6f47f89ab03 100644 --- a/libstdc++-v3/include/std/bit +++ b/libstdc++-v3/include/std/bit @@ -141,8 +141,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION constexpr int __countl_one(_Tp __x) noexcept { - if (__x == __gnu_cxx::__int_traits<_Tp>::__max) - return __gnu_cxx::__int_traits<_Tp>::__digits; return std::__countl_zero<_Tp>((_Tp)~__x); } @@ -184,8 +182,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION constexpr int __countr_one(_Tp __x) noexcept { - if (__x == __gnu_cxx::__int_traits<_Tp>::__max) - return __gnu_cxx::__int_traits<_Tp>::__digits; return std::__countr_zero((_Tp)~__x); }