1 | //===----------------------------------------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef _LIBCPP___FWD_BIT_REFERENCE_H |
10 | #define _LIBCPP___FWD_BIT_REFERENCE_H |
11 | |
12 | #include <__config> |
13 | |
14 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
15 | # pragma GCC system_header |
16 | #endif |
17 | |
18 | _LIBCPP_BEGIN_NAMESPACE_STD |
19 | |
20 | template <class _Cp, bool _IsConst, typename _Cp::__storage_type = 0> |
21 | class __bit_iterator; |
22 | |
23 | template <class _Cp> |
24 | struct __bit_array; |
25 | |
26 | template <class, class = void> |
27 | struct __size_difference_type_traits; |
28 | |
29 | template <class _StoragePointer> |
30 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void |
31 | __fill_masked_range(_StoragePointer __word, unsigned __clz, unsigned __ctz, bool __fill_val); |
32 | |
33 | template <class _StorageType> |
34 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _StorageType __trailing_mask(unsigned __clz); |
35 | |
36 | template <class _StorageType> |
37 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _StorageType __leading_mask(unsigned __ctz); |
38 | |
39 | template <class _StorageType> |
40 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _StorageType __middle_mask(unsigned __clz, unsigned __ctz); |
41 | |
42 | _LIBCPP_END_NAMESPACE_STD |
43 | |
44 | #endif // _LIBCPP___FWD_BIT_REFERENCE_H |
45 | |