Home
last modified time | relevance | path

Searched refs:__func (Results 1 – 14 of 14) sorted by relevance

/freebsd-14.2/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_for_each.h44 __for_each_impl(_Iter __first, _Sent __last, _Func& __func, _Proj& __proj) { in __for_each_impl()
46 std::invoke(__func, std::invoke(__proj, *__first)); in __for_each_impl()
47 return {std::move(__first), std::move(__func)}; in __for_each_impl()
56 operator()(_Iter __first, _Sent __last, _Func __func, _Proj __proj = {}) const { in operator()
57 return __for_each_impl(std::move(__first), std::move(__last), __func, __proj);
64 operator()(_Range&& __range, _Func __func, _Proj __proj = {}) const { in operator()
65 return __for_each_impl(ranges::begin(__range), ranges::end(__range), __func, __proj);
H A Dpstl_for_each.h44 …tionPolicy&&, _ForwardIterator&& __first, _ForwardIterator&& __last, _Function&& __func) noexcept { in __for_each() argument
46 …:__pstl_for_each<_RawPolicy>(_Backend{}, std::move(__first), std::move(__last), std::move(__func)); in __for_each()
55 …_ExecutionPolicy&& __policy, _ForwardIterator __first, _ForwardIterator __last, _Function __func) { in for_each() argument
57 if (!std::__for_each(__policy, std::move(__first), std::move(__last), std::move(__func))) in for_each()
71 …cutionPolicy&& __policy, _ForwardIterator&& __first, _Size&& __size, _Function&& __func) noexcept { in __for_each_n() argument
85 std::move(__func)); in __for_each_n()
95 for_each_n(_ExecutionPolicy&& __policy, _ForwardIterator __first, _Size __size, _Function __func) { in for_each_n() argument
97 …auto __res = std::__for_each_n(__policy, std::move(__first), std::move(__size), std::move(__func)); in for_each_n()
H A Dfor_each_segment.h27 __for_each_segment(_SegmentedIterator __first, _SegmentedIterator __last, _Functor __func) { in __for_each_segment() argument
35 __func(_Traits::__local(__first), _Traits::__local(__last)); in __for_each_segment()
40 __func(_Traits::__local(__first), _Traits::__end(__sfirst)); in __for_each_segment()
44 __func(_Traits::__begin(__sfirst), _Traits::__end(__sfirst)); in __for_each_segment()
48 __func(_Traits::__begin(__sfirst), _Traits::__local(__last)); in __for_each_segment()
H A Dranges_for_each_n.h43 …operator()(_Iter __first, iter_difference_t<_Iter> __count, _Func __func, _Proj __proj = {}) const… in operator()
45 std::invoke(__func, std::invoke(__proj, *__first));
48 return {std::move(__first), std::move(__func)};
H A Dfor_each.h43 for_each(_SegmentedIterator __first, _SegmentedIterator __last, _Function __func) { in for_each() argument
44 ranges::__movable_box<_Function> __wrapped_func(in_place, std::move(__func)); in for_each()
/freebsd-14.2/contrib/llvm-project/libcxx/include/__algorithm/pstl_backends/cpu_backends/
H A Dfor_each.h39 …l_for_each(__cpu_backend_tag, _ForwardIterator __first, _ForwardIterator __last, _Functor __func) { in __pstl_for_each() argument
43 __first, __last, [__func](_ForwardIterator __brick_first, _ForwardIterator __brick_last) { in __pstl_for_each()
45 __cpu_backend_tag{}, __brick_first, __brick_last, __func); in __pstl_for_each()
50 std::__simd_walk(__first, __last - __first, __func); in __pstl_for_each()
53 std::for_each(__first, __last, __func); in __pstl_for_each()
H A Dlibdispatch.h48 __dispatch_apply(size_t __chunk_count, void* __context, void (*__func)(void* __context, size_t __ch…
51 _LIBCPP_HIDE_FROM_ABI void __dispatch_apply(size_t __chunk_count, _Func __func) noexcept { in __dispatch_apply() argument
52 __libdispatch::__dispatch_apply(__chunk_count, &__func, [](void* __context, size_t __chunk) { in __dispatch_apply()
67 …tch_parallel_for(__chunk_partitions __partitions, _RandomAccessIterator __first, _Functor __func) { in __dispatch_parallel_for() argument
75 __func(__first + __index, __first + __index + __this_chunk_size); in __dispatch_parallel_for()
83 __parallel_for(_RandomAccessIterator __first, _RandomAccessIterator __last, _Functor __func) { in __parallel_for() argument
85 __libdispatch::__partition_chunks(__last - __first), std::move(__first), std::move(__func)); in __parallel_for()
/freebsd-14.2/contrib/llvm-project/libcxx/include/__functional/
H A Dfunction.h253 class __func;
282 typedef __rebind_alloc<__alloc_traits, __func> _Ap;
303 typedef __rebind_alloc<__alloc_traits, __func> _Ap;
341 typedef __base<_Rp(_ArgTypes...)> __func;
342 __func* __f_;
344 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI static __func* __as_base(void* __p) { return reinterpret_cast…
416 __func* __f = __f_;
438 __func* __t = __as_base(&__tempbuf);
802 if (__ti == typeid(__func::__block_type))
820 typedef __function::__value_func<_Rp(_ArgTypes...)> __func;
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/include/__mutex/
H A Donce_flag.h126 inline _LIBCPP_HIDE_FROM_ABI void call_once(once_flag& __flag, _Callable&& __func, _Args&&... __arg… in call_once() argument
129 _Gp __f(std::forward<_Callable>(__func), std::forward<_Args>(__args)...); in call_once()
138 inline _LIBCPP_HIDE_FROM_ABI void call_once(once_flag& __flag, _Callable& __func) { in call_once() argument
140 __call_once_param<_Callable> __p(__func); in call_once()
146 inline _LIBCPP_HIDE_FROM_ABI void call_once(once_flag& __flag, const _Callable& __func) { in call_once() argument
148 __call_once_param<const _Callable> __p(__func); in call_once()
/freebsd-14.2/contrib/llvm-project/clang/lib/Headers/
H A D__clang_hip_cmath.h190 #define __DEF_FUN1(__retty, __func) \ argument
191 __DEVICE__ __CONSTEXPR__ __retty __func(float __x) { return __func##f(__x); }
194 #define __DEF_FUN2(__retty, __func) \ argument
195 __DEVICE__ __CONSTEXPR__ __retty __func(float __x, float __y) { \
196 return __func##f(__x, __y); \
200 #define __DEF_FUN2_FI(__retty, __func) \ argument
201 __DEVICE__ __CONSTEXPR__ __retty __func(float __x, int __y) { \
202 return __func##f(__x, __y); \
/freebsd-14.2/sys/contrib/openzfs/include/
H A Dlibzutil.h247 #define __FOR_EACH_VDEV(__zhp, __nv, __func) { \ argument
252 for_each_vdev_cb(&__state, __root_nv, __func, &__nv) == 1; \
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A D__threading_support215 int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(void*), void* __arg);
316 int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(void*), void* __arg) {
317 return pthread_create(__t, nullptr, __func, __arg);
421 int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(void*), void* __arg) {
422 int __ec = thrd_create(__t, reinterpret_cast<thrd_start_t>(__func), __arg);
/freebsd-14.2/contrib/llvm-project/libcxx/include/__utility/
H A Dinteger_sequence.h144 …DE_FROM_ABI constexpr void __for_each_index_sequence(index_sequence<_Index...>, _Function __func) {
145 (__func.template operator()<_Index>(), ...);
/freebsd-14.2/contrib/llvm-project/libcxx/include/__ranges/
H A Dtransform_view.h87 …IBCPP_HIDE_FROM_ABI constexpr _LIBCPP_EXPLICIT_SINCE_CXX23 transform_view(_View __base, _Fn __func) in transform_view() argument
88 : __func_(std::in_place, std::move(__func)), __base_(std::move(__base)) {} in transform_view()