39 lines · plain
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-exception7//8//===----------------------------------------------------------------------===//9 10export namespace std {11 // [bit.cast], bit_cast12 using std::bit_cast;13 14#if _LIBCPP_STD_VER >= 2315 // [bit.byteswap], byteswap16 using std::byteswap;17#endif18 19 // [bit.pow.two], integral powers of 220 using std::bit_ceil;21 using std::bit_floor;22 using std::bit_width;23 using std::has_single_bit;24 25 // [bit.rotate], rotating26 using std::rotl;27 using std::rotr;28 29 // [bit.count], counting30 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], endian37 using std::endian;38} // namespace std39