diff --git a/libcxx/include/bit b/libcxx/include/bit --- a/libcxx/include/bit +++ b/libcxx/include/bit @@ -114,7 +114,7 @@ int __iter = 0; const unsigned int __ulldigits = numeric_limits::digits; while (true) { - __t = std::__rotr(__t, __ulldigits); + __t = std::__rotl(__t, __ulldigits); if ((__iter = std::__countl_zero(static_cast(__t))) != __ulldigits) break; __ret += __iter;