1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10export namespace std { 11 // [bit.cast], bit_cast 12 using std::bit_cast; 13 14#if _LIBCPP_STD_VER >= 23 15 // [bit.byteswap], byteswap 16 using std::byteswap; 17#endif 18 19 // [bit.pow.two], integral powers of 2 20 using std::bit_ceil; 21 using std::bit_floor; 22 using std::bit_width; 23 using std::has_single_bit; 24 25 // [bit.rotate], rotating 26 using std::rotl; 27 using std::rotr; 28 29 // [bit.count], counting 30 using std::countl_one; 31 using std::countl_zero; 32 using std::countr_one; 33 using std::countr_zero; 34 using std::popcount; 35 36 // [bit.endian], endian 37 using std::endian; 38} // namespace std 39