1*4bdff4beSrobert //===----------------------------------------------------------------------===// 2*4bdff4beSrobert // 3*4bdff4beSrobert // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*4bdff4beSrobert // See https://llvm.org/LICENSE.txt for license information. 5*4bdff4beSrobert // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*4bdff4beSrobert // 7*4bdff4beSrobert //===----------------------------------------------------------------------===// 8*4bdff4beSrobert 9*4bdff4beSrobert #ifndef _LIBCPP___BIT_BLSR_H 10*4bdff4beSrobert #define _LIBCPP___BIT_BLSR_H 11*4bdff4beSrobert 12*4bdff4beSrobert #include <__config> 13*4bdff4beSrobert 14*4bdff4beSrobert #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 15*4bdff4beSrobert # pragma GCC system_header 16*4bdff4beSrobert #endif 17*4bdff4beSrobert 18*4bdff4beSrobert _LIBCPP_BEGIN_NAMESPACE_STD 19*4bdff4beSrobert __libcpp_blsr(unsigned __x)20*4bdff4beSrobertinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unsigned __libcpp_blsr(unsigned __x) _NOEXCEPT { 21*4bdff4beSrobert return __x ^ (__x & -__x); 22*4bdff4beSrobert } 23*4bdff4beSrobert __libcpp_blsr(unsigned long __x)24*4bdff4beSrobertinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unsigned long __libcpp_blsr(unsigned long __x) _NOEXCEPT { 25*4bdff4beSrobert return __x ^ (__x & -__x); 26*4bdff4beSrobert } 27*4bdff4beSrobert __libcpp_blsr(unsigned long long __x)28*4bdff4beSrobertinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unsigned long long __libcpp_blsr(unsigned long long __x) _NOEXCEPT { 29*4bdff4beSrobert return __x ^ (__x & -__x); 30*4bdff4beSrobert } 31*4bdff4beSrobert 32*4bdff4beSrobert _LIBCPP_END_NAMESPACE_STD 33*4bdff4beSrobert 34*4bdff4beSrobert #endif // _LIBCPP___BIT_BLSR_H 35