diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2019-07-12 01:01:55 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2019-07-12 01:01:55 +0000 |
| commit | f3b851f0b8b67204ad3b5af1689d6c1f36c47ec1 (patch) | |
| tree | efd2d60355f0fcef754084365d5461db941a8685 /libcxx/include/algorithm | |
| parent | bab7e3d78b01d9a4145a08e9c4cd4e7626e34d08 (diff) | |
| download | bcm5719-llvm-f3b851f0b8b67204ad3b5af1689d6c1f36c47ec1.tar.gz bcm5719-llvm-f3b851f0b8b67204ad3b5af1689d6c1f36c47ec1.zip | |
Reorganize the 'bit' header to make most of the facilities available for internal use pre-C++20. NFC for external users
llvm-svn: 365854
Diffstat (limited to 'libcxx/include/algorithm')
| -rw-r--r-- | libcxx/include/algorithm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index d17666a2955..0d786267558 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -3021,7 +3021,7 @@ _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK typedef __independent_bits_engine<_URNG, _UIntType> _Eng; if (_Rp == 0) return static_cast<result_type>(_Eng(__g, _Dt)()); - size_t __w = _Dt - __clz(_Rp) - 1; + size_t __w = _Dt - __libcpp_clz(_Rp) - 1; if ((_Rp & (std::numeric_limits<_UIntType>::max() >> (_Dt - __w))) != 0) ++__w; _Eng __e(__g, __w); |

