Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / modules / std / bit.inc
blob027a6c17ad6a6b0cde7f72d289086fe9ed4d488c
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 //===----------------------------------------------------------------------===//
10 export namespace std {
11   // [bit.cast], bit_cast
12   using std::bit_cast;
14 #if _LIBCPP_STD_VER >= 23
15   // [bit.byteswap], byteswap
16   using std::byteswap;
17 #endif
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;
25   // [bit.rotate], rotating
26   using std::rotl;
27   using std::rotr;
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;
36   // [bit.endian], endian
37   using std::endian;
38 } // namespace std