/freebsd/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/ |
H A D | complex_cmath.h | 34 template <class _Tp> __DEVICE__ _Tp abs(const std::complex<_Tp> &__c) { in abs() 40 template <class _Tp> __DEVICE__ _Tp arg(const std::complex<_Tp> &__c) { in arg() 44 template <class _Tp> 45 typename enable_if<is_integral<_Tp>::value || is_same<_Tp, double>::value, 47 arg(_Tp __re) { in arg() 51 template <class _Tp> 52 typename enable_if<is_same<_Tp, float>::value, float>::type arg(_Tp __re) { in arg() 58 template <class _Tp> __DEVICE__ _Tp norm(const std::complex<_Tp> &__c) { in norm() 68 template <class _Tp> std::complex<_Tp> conj(const std::complex<_Tp> &__c) { in conj() 69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__atomic/ |
H A D | atomic.h | 35 template <class _Tp> 36 struct atomic : public __atomic_base<_Tp> { 37 using __base = __atomic_base<_Tp>; 38 using value_type = _Tp; 47 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR atomic(_Tp __d) _NOEXCEPT : __base(__d) {} in atomic() 49 _LIBCPP_HIDE_FROM_ABI _Tp operator=(_Tp __d) volatile _NOEXCEPT { 53 _LIBCPP_HIDE_FROM_ABI _Tp operator=(_Tp __d) _NOEXCEPT { 64 template <class _Tp> 65 struct atomic<_Tp*> : public __atomic_base<_Tp*> { 66 using __base = __atomic_base<_Tp*>; [all …]
|
H A D | cxx_atomic_impl.h | 32 template <typename _Tp, typename _Tv, __enable_if_t<is_assignable<_Tp&, _Tv>::value, int> = 0> 33 _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_assign_volatile(_Tp& __a_value, _Tv const& __val) { in __cxx_atomic_assign_volatile() 36 template <typename _Tp, typename _Tv, __enable_if_t<is_assignable<_Tp&, _Tv>::value, int> = 0> 37 _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_assign_volatile(_Tp volatile& __a_value, _Tv volatile const… in __cxx_atomic_assign_volatile() 39 volatile char* __end = __to + sizeof(_Tp); in __cxx_atomic_assign_volatile() 45 template <typename _Tp> 54 _LIBCPP_CONSTEXPR explicit __cxx_atomic_base_impl(_Tp value) _NOEXCEPT : __a_value(value) {} in __cxx_atomic_base_impl() 55 _Tp __a_value; 58 template <typename _Tp> 59 _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_init(volatile __cxx_atomic_base_impl<_Tp>* __a, _Tp __val) { in __cxx_atomic_init() [all …]
|
H A D | atomic_ref.h | 58 template <class _Tp> 61 _LIBCPP_HIDE_FROM_ABI static _Tp* __clear_padding(_Tp& __val) noexcept { in __clear_padding() 62 _Tp* __ptr = std::addressof(__val); in __clear_padding() 70 …_Tp* __ptr, _Tp* __expected, _Tp* __desired, bool __is_weak, int __success, int __failure) noexcep… in __compare_exchange() 73 has_unique_object_representations_v<_Tp> || floating_point<_Tp> in __compare_exchange() 81 _Tp __copy = *__expected; in __compare_exchange() 89 _Tp __prev = __copy; in __compare_exchange() 93 _Tp __curr = __copy; in __compare_exchange() 94 if (std::memcmp(__clear_padding(__prev), __clear_padding(__curr), sizeof(_Tp)) != 0) { in __compare_exchange() 97 std::memcpy(__expected, std::addressof(__copy), sizeof(_Tp)); in __compare_exchange() [all …]
|
H A D | atomic_base.h | 30 template <class _Tp, bool = is_integral<_Tp>::value && !is_same<_Tp, bool>::value> 33 mutable __cxx_atomic_impl<_Tp> __a_; 36 …static constexpr bool is_always_lock_free = __libcpp_is_always_lock_free<__cxx_atomic_impl<_Tp> >:… 40 return __cxx_atomic_is_lock_free(sizeof(__cxx_atomic_impl<_Tp>)); in is_lock_free() 45 …_LIBCPP_HIDE_FROM_ABI void store(_Tp __d, memory_order __m = memory_order_seq_cst) volatile _NOEXC… 49 _LIBCPP_HIDE_FROM_ABI void store(_Tp __d, memory_order __m = memory_order_seq_cst) _NOEXCEPT 53 _LIBCPP_HIDE_FROM_ABI _Tp load(memory_order __m = memory_order_seq_cst) const volatile _NOEXCEPT 57 _LIBCPP_HIDE_FROM_ABI _Tp load(memory_order __m = memory_order_seq_cst) const _NOEXCEPT 61 _LIBCPP_HIDE_FROM_ABI operator _Tp() const volatile _NOEXCEPT { return load(); } in _Tp() function 62 _LIBCPP_HIDE_FROM_ABI operator _Tp() const _NOEXCEPT { return load(); } in _Tp() function [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__functional/ |
H A D | operations.h | 28 template <class _Tp = void> 30 template <class _Tp> 32 struct _LIBCPP_TEMPLATE_VIS plus : __binary_function<_Tp, _Tp, _Tp> { 33 typedef _Tp __result_type; // used by valarray 34 …_LIBCPP_CONSTEXPR_SINCE_CXX14 _LIBCPP_HIDE_FROM_ABI _Tp operator()(const _Tp& __x, const _Tp& __y)… in operator() 42 template <class _Tp> 43 inline const bool __desugars_to_v<__plus_tag, plus<_Tp>, _Tp, _Tp> = true; 45 template <class _Tp, class _Up> 46 inline const bool __desugars_to_v<__plus_tag, plus<void>, _Tp, _Up> = true; 62 template <class _Tp = void> [all …]
|
H A D | mem_fun_ref.h | 25 template <class _Sp, class _Tp> 26 class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 mem_fun_t : public __unary_function<_Tp*, _S… 27 _Sp (_Tp::*__p_)(); 30 _LIBCPP_HIDE_FROM_ABI explicit mem_fun_t(_Sp (_Tp::*__p)()) : __p_(__p) {} in mem_fun_t() 31 _LIBCPP_HIDE_FROM_ABI _Sp operator()(_Tp* __p) const { return (__p->*__p_)(); } in operator() 34 template <class _Sp, class _Tp, class _Ap> 35 class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 mem_fun1_t : public __binary_function<_Tp*, … 36 _Sp (_Tp::*__p_)(_Ap); 39 _LIBCPP_HIDE_FROM_ABI explicit mem_fun1_t(_Sp (_Tp::*__p)(_Ap)) : __p_(__p) {} in mem_fun1_t() 40 _LIBCPP_HIDE_FROM_ABI _Sp operator()(_Tp* __p, _Ap __x) const { return (__p->*__p_)(__x); } in operator() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__ranges/ |
H A D | access.h | 35 template <class _Tp> 36 concept __can_borrow = is_lvalue_reference_v<_Tp> || enable_borrowed_range<remove_cvref_t<_Tp>>; 43 template <class _Tp> 44 concept __member_begin = __can_borrow<_Tp> && requires(_Tp&& __t) { in requires() 50 template <class _Tp> 52 …!__member_begin<_Tp> && __can_borrow<_Tp> && __class_or_enum<remove_cvref_t<_Tp>> && requires(_Tp&… 57 template <class _Tp> 58 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp (&__t)[]) const noexcept in operator() 59 requires(sizeof(_Tp) >= 0) // Disallow incomplete element types. in operator() 64 template <class _Tp, size_t _Np> [all …]
|
H A D | movable_box.h | 44 template <class _Tp> 47 move_constructible<_Tp> 49 copy_constructible<_Tp> 51 && is_object_v<_Tp>; 55 template <__movable_box_object _Tp> 57 _LIBCPP_NO_UNIQUE_ADDRESS optional<_Tp> __val_; 61 requires is_constructible_v<_Tp, _Args...> 63 is_nothrow_constructible_v<_Tp, _Args...>) in __movable_box() 66 _LIBCPP_HIDE_FROM_ABI constexpr __movable_box() noexcept(is_nothrow_default_constructible_v<_Tp>) in __movable_box() 67 requires default_initializable<_Tp> in __movable_box() [all …]
|
H A D | concepts.h | 46 template <class _Tp> 47 concept range = requires(_Tp& __t) { in requires() 52 template <class _Tp> 53 concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>; 80 template <class _Tp> 81 concept sized_range = range<_Tp> && requires(_Tp& __t) { ranges::size(__t); }; in requires() 93 template <class _Tp> 94 concept view = range<_Tp> [all...] |
H A D | rbegin.h | 38 template <class _Tp> 39 concept __member_rbegin = __can_borrow<_Tp> && requires(_Tp&& __t) { in requires() 45 template <class _Tp> 47 …!__member_rbegin<_Tp> && __can_borrow<_Tp> && __class_or_enum<remove_cvref_t<_Tp>> && requires(_Tp… 51 template <class _Tp> 53 … __can_borrow<_Tp> && !__member_rbegin<_Tp> && !__unqualified_rbegin<_Tp> && requires(_Tp&& __t) { 59 template <class _Tp> 60 requires __member_rbegin<_Tp> 61 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp&& __t) const in operator() 66 template <class _Tp> [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
H A D | saturation_arithmetic.h | 30 template <__libcpp_integer _Tp> 31 _LIBCPP_HIDE_FROM_ABI constexpr _Tp __add_sat(_Tp __x, _Tp __y) noexcept { in __add_sat() 32 if (_Tp __sum; !__builtin_add_overflow(__x, __y, &__sum)) in __add_sat() 35 if constexpr (__libcpp_unsigned_integer<_Tp>) { in __add_sat() 36 return std::numeric_limits<_Tp>::max(); in __add_sat() 41 return std::numeric_limits<_Tp>::max(); in __add_sat() 44 return std::numeric_limits<_Tp>::min(); in __add_sat() 48 template <__libcpp_integer _Tp> 49 _LIBCPP_HIDE_FROM_ABI constexpr _Tp __sub_sat(_Tp __x, _Tp __y) noexcept { in __sub_sat() 50 if (_Tp __sub; !__builtin_sub_overflow(__x, __y, &__sub)) in __sub_sat() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__type_traits/ |
H A D | is_swappable.h | 29 template <class _Tp, class _Up, class = void> 32 template <class _Tp> 33 inline const bool __is_swappable_v = __is_swappable_with_v<_Tp&, _Tp&>; 35 template <class _Tp, class _Up, bool = __is_swappable_with_v<_Tp, _Up> > 38 template <class _Tp> 39 inline const bool __is_nothrow_swappable_v = __is_nothrow_swappable_with_v<_Tp&, _Tp&>; 42 template <class _Tp> 43 using __swap_result_t = __enable_if_t<is_move_constructible<_Tp>::value && is_move_assignable<_Tp>:… 49 template <class _Tp> 50 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __swap_result_t<_Tp> swap(_Tp& __x, _Tp&… [all …]
|
H A D | is_nothrow_constructible.h | 30 template < class _Tp, class... _Args> 32 : public integral_constant<bool, __is_nothrow_constructible(_Tp, _Args...)> {}; 35 template <bool, bool, class _Tp, class... _Args> 38 template <class _Tp, class... _Args> 39 struct __libcpp_is_nothrow_constructible</*is constructible*/ true, /*is reference*/ false, _Tp, _A… 40 : public integral_constant<bool, noexcept(_Tp(std::declval<_Args>()...))> {}; 42 template <class _Tp> 43 void __implicit_conversion_to(_Tp) noexcept {} 45 template <class _Tp, class _Arg> 46 struct __libcpp_is_nothrow_constructible</*is constructible*/ true, /*is reference*/ true, _Tp, _Ar… [all …]
|
H A D | common_type.h | 28 template <class _Tp, class _Up> 29 using __cond_type = decltype(false ? std::declval<_Tp>() : std::declval<_Up>()); 31 template <class _Tp, class _Up, class = void> 35 template <class _Tp, class _Up> 36 struct __common_type3<_Tp, _Up, void_t<__cond_type<const _Tp&, const _Up&>>> { 37 using type = remove_cvref_t<__cond_type<const _Tp&, const _Up&>>; 40 template <class _Tp, class _Up, class = void> 41 struct __common_type2_imp : __common_type3<_Tp, _Up> {}; 43 template <class _Tp, class _Up, class = void> 48 template <class _Tp, class _Up> [all …]
|
H A D | is_reference.h | 23 template <class _Tp> 24 struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {}; 26 template <class _Tp> 27 struct _LIBCPP_TEMPLATE_VIS is_rvalue_reference : _BoolConstant<__is_rvalue_reference(_Tp)> {}; 29 template <class _Tp> 30 struct _LIBCPP_TEMPLATE_VIS is_reference : _BoolConstant<__is_reference(_Tp)> {}; 33 template <class _Tp> 34 inline constexpr bool is_reference_v = __is_reference(_Tp); 35 template <class _Tp> 36 inline constexpr bool is_lvalue_reference_v = __is_lvalue_reference(_Tp); [all …]
|
H A D | is_equality_comparable.h | 29 template <class _Tp, class _Up, class = void> 32 template <class _Tp, class _Up> 33 struct __is_equality_comparable<_Tp, _Up, __void_t<decltype(std::declval<_Tp>() == std::declval<_Up… 50 template <class _Tp, class _Up, class = void> 53 template <class _Tp> 54 struct __libcpp_is_trivially_equality_comparable_impl<_Tp, _Tp> 56 …egral_constant<bool, __is_trivially_equality_comparable(_Tp) && __is_equality_comparable<_Tp, _Tp>… 59 : is_integral<_Tp> { 63 template <class _Tp, class _Up> 65 _Tp, [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__memory/ |
H A D | shared_ptr.h | 97 template <class _Tp> 98 inline _LIBCPP_HIDE_FROM_ABI _Tp __libcpp_atomic_refcount_increment(_Tp& __t) _NOEXCEPT { in __libcpp_atomic_refcount_increment() 106 template <class _Tp> 107 inline _LIBCPP_HIDE_FROM_ABI _Tp __libcpp_atomic_refcount_decrement(_Tp& __t) _NOEXCEPT { in __libcpp_atomic_refcount_decrement() 132 template <class _Tp> 199 template <class _Tp, class _Dp, class _Alloc> 201 __compressed_pair<__compressed_pair<_Tp, _Dp>, _Alloc> __data_; 204 _LIBCPP_HIDE_FROM_ABI __shared_ptr_pointer(_Tp __p, _Dp __d, _Alloc __a) in __shared_ptr_pointer() 205 : __data_(__compressed_pair<_Tp, _Dp>(__p, std::move(__d)), std::move(__a)) {} in __shared_ptr_pointer() 218 template <class _Tp, class _Dp, class _Alloc> [all …]
|
H A D | allocator.h | 32 template <class _Tp> 93 template <class _Tp> 94 class _LIBCPP_TEMPLATE_VIS allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp… 95 static_assert(!is_const<_Tp>::value, "std::allocator does not support const types"); 96 static_assert(!is_volatile<_Tp>::value, "std::allocator does not support volatile types"); 101 typedef _Tp value_type; 112 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Tp* allocate(size_t __n) { 116 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 118 return static_cast<_Tp*>(std::__libcpp_allocate(__n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp))); 123 …[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr allocation_result<_Tp*> allocate_at_least(size_t __n… [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__string/ |
H A D | constexpr_c_functions.h | 38 template <class _Tp> 49 template <class _Tp> 50 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 size_t __constexpr_strlen(const _Tp* __s… in __constexpr_strlen() 51 static_assert(__is_char_type<_Tp>, "__constexpr_strlen only works with char and char8_t"); in __constexpr_strlen() 56 if constexpr (is_same_v<_Tp, char>) in __constexpr_strlen() 70 template <class _Tp, class _Up> 72 __constexpr_memcmp(const _Tp* __lhs, const _Up* __rhs, __element_count __n) { in __constexpr_memcmp() 73 static_assert(__libcpp_is_trivially_lexicographically_comparable<_Tp, _Up>::value, in __constexpr_memcmp() 80 if (sizeof(_Tp) == 1 && !is_same<_Tp, bool>::value) in __constexpr_memcmp() 81 return __builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)); in __constexpr_memcmp() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | numbers | 75 template <class _Tp> 78 template <class _Tp> 81 __false<_Tp>, 85 template <class _Tp> 86 inline constexpr _Tp e_v = __illformed<_Tp>{}; 87 template <class _Tp> 88 inline constexpr _Tp log2e_v = __illformed<_Tp>{}; 89 template <class _Tp> 90 inline constexpr _Tp log10e_v = __illformed<_Tp>{}; 91 template <class _Tp> [all …]
|
H A D | complex | 282 template <class _Tp> 285 template <class _Tp, __enable_if_t<is_floating_point<_Tp>::value, int> = 0> 286 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex<_Tp> 287 operator*(const complex<_Tp>& __z, const complex<_Tp>& __w); 289 template <class _Tp, __enable_if_t<!is_floating_point<_Tp>::value, int> = 0> 290 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex<_Tp> 291 operator*(const complex<_Tp>& __z, const complex<_Tp>& __w); 293 template <class _Tp, __enable_if_t<is_floating_point<_Tp>::value, int> = 0> 294 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 complex<_Tp> 295 operator/(const complex<_Tp>& __x, const complex<_Tp>& __y); [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__tuple/ |
H A D | tuple_size.h | 25 template <class _Tp> 29 template <class _Tp, class...> 30 using __enable_if_tuple_size_imp = _Tp; 32 template <class _Tp> 33 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< const _Tp, 34 … __enable_if_t<!is_volatile<_Tp>::value>, 35 … integral_constant<size_t, sizeof(tuple_size<_Tp>)>>> 36 : public integral_constant<size_t, tuple_size<_Tp>::value> {}; 38 template <class _Tp> 39 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< volatile _Tp, [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__concepts/ |
H A D | constructible.h | 26 template <class _Tp, class... _Args> 27 concept constructible_from = destructible<_Tp> && is_constructible_v<_Tp, _Args...>; 31 template <class _Tp> 32 concept __default_initializable = requires { ::new _Tp; }; 34 template <class _Tp> 35 …ept default_initializable = constructible_from<_Tp> && requires { _Tp{}; } && __default_initializa… 38 template <class _Tp> 39 concept move_constructible = constructible_from<_Tp, _Tp> && convertible_to<_Tp, _Tp>; 43 template <class _Tp> 45 move_constructible<_Tp> && [all …]
|
H A D | swappable.h | 43 template <class _Tp> 44 void swap(_Tp&, _Tp&) = delete; 47 template <class _Tp, class _Up> 49 (__class_or_enum<remove_cvref_t<_Tp>> || __class_or_enum<remove_cvref_t<_Up>>) && 50 requires(_Tp&& __t, _Up&& __u) { in requires() 51 swap(std::forward<_Tp>(__t), std::forward<_Up>(__u)); in requires() 58 template <class _Tp, class _Up, size_t _Size> 60 !__unqualified_swappable_with<_Tp (&)[_Size], _Up (&)[_Size]> && 61 extent_v<_Tp> == extent_v<_Up> && 62 requires(_Tp (&__t)[_Size], _Up (&__u)[_Size], const __fn& __swap) { [all …]
|