22 items
NAME ↑ SIZE MODIFIED PERMS ACTIONS
.. / Parent Directory
algorithm_fwd.h — 66.74 KB
2025-09-15 15:41 · rw-r--r--
66.74 KB 2025-09-15 15:41 rw-r--r--
algorithm_impl.h — 170.41 KB
2025-09-15 15:41 · rw-r--r--
170.41 KB 2025-09-15 15:41 rw-r--r--
execution_defs.h — 3.61 KB
2025-09-15 15:41 · rw-r--r--
3.61 KB 2025-09-15 15:41 rw-r--r--
execution_impl.h — 4.72 KB
2025-09-15 15:41 · rw-r--r--
4.72 KB 2025-09-15 15:41 rw-r--r--
glue_algorithm_defs.h — 31.52 KB
2025-09-15 15:41 · rw-r--r--
31.52 KB 2025-09-15 15:41 rw-r--r--
glue_algorithm_impl.h — 62.84 KB
2025-09-15 15:41 · rw-r--r--
62.84 KB 2025-09-15 15:41 rw-r--r--
glue_execution_defs.h — 1.51 KB
2025-09-15 15:41 · rw-r--r--
1.51 KB 2025-09-15 15:41 rw-r--r--
glue_memory_defs.h — 3.77 KB
2025-09-15 15:41 · rw-r--r--
3.77 KB 2025-09-15 15:41 rw-r--r--
glue_memory_impl.h — 18.96 KB
2025-09-15 15:41 · rw-r--r--
18.96 KB 2025-09-15 15:41 rw-r--r--
glue_numeric_defs.h — 6.46 KB
2025-09-15 15:41 · rw-r--r--
6.46 KB 2025-09-15 15:41 rw-r--r--
glue_numeric_impl.h — 12.01 KB
2025-09-15 15:41 · rw-r--r--
12.01 KB 2025-09-15 15:41 rw-r--r--
memory_impl.h — 3.95 KB
2025-09-15 15:41 · rw-r--r--
3.95 KB 2025-09-15 15:41 rw-r--r--
numeric_fwd.h — 7.74 KB
2025-09-15 15:41 · rw-r--r--
7.74 KB 2025-09-15 15:41 rw-r--r--
numeric_impl.h — 18.26 KB
2025-09-15 15:41 · rw-r--r--
18.26 KB 2025-09-15 15:41 rw-r--r--
parallel_backend.h — 845 B
2025-09-15 15:41 · rw-r--r--
845 B 2025-09-15 15:41 rw-r--r--
parallel_backend_serial.h — 3.91 KB
2025-09-15 15:41 · rw-r--r--
3.91 KB 2025-09-15 15:41 rw-r--r--
parallel_backend_tbb.h — 42.74 KB
2025-09-15 15:41 · rw-r--r--
42.74 KB 2025-09-15 15:41 rw-r--r--
parallel_backend_utils.h — 8.9 KB
2025-09-15 15:41 · rw-r--r--
8.9 KB 2025-09-15 15:41 rw-r--r--
parallel_impl.h — 4.01 KB
2025-09-15 15:41 · rw-r--r--
4.01 KB 2025-09-15 15:41 rw-r--r--
pstl_config.h — 7.16 KB
2025-09-15 15:41 · rw-r--r--
7.16 KB 2025-09-15 15:41 rw-r--r--
unseq_backend_simd.h — 28.5 KB
2025-09-15 15:41 · rw-r--r--
28.5 KB 2025-09-15 15:41 rw-r--r--
utils.h — 4.5 KB
2025-09-15 15:41 · rw-r--r--
4.5 KB 2025-09-15 15:41 rw-r--r--
ONLINE
pstl
22 items
11:25:35
TERMINAL FM
Edit
Preview
Download
Rename
Copy
Chmod
Delete
// -*- C++ -*- //===-- execution_impl.h --------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef _PSTL_EXECUTION_IMPL_H #define _PSTL_EXECUTION_IMPL_H #include #include #include "execution_defs.h" namespace __pstl { namespace __internal { using namespace __pstl::execution; /* predicate */ template std::false_type __lazy_and(_Tp, std::false_type) { return std::false_type{}; } template inline _Tp __lazy_and(_Tp __a, std::true_type) { return __a; } template std::true_type __lazy_or(_Tp, std::true_type) { return std::true_type{}; } template inline _Tp __lazy_or(_Tp __a, std::false_type) { return __a; } /* iterator */ template struct __is_random_access_iterator { static constexpr bool value = __internal::__is_random_access_iterator<_IteratorType>::value && __internal::__is_random_access_iterator<_OtherIteratorTypes...>::value; typedef std::integral_constant type; }; template struct __is_random_access_iterator<_IteratorType> : std::is_same::iterator_category, std::random_access_iterator_tag> { }; /* policy */ template struct __policy_traits { }; template <> struct __policy_traits { typedef std::false_type allow_parallel; typedef std::false_type allow_unsequenced; typedef std::false_type allow_vector; }; template <> struct __policy_traits { typedef std::false_type allow_parallel; typedef std::true_type allow_unsequenced; typedef std::true_type allow_vector; }; template <> struct __policy_traits { typedef std::true_type allow_parallel; typedef std::false_type allow_unsequenced; typedef std::false_type allow_vector; }; template <> struct __policy_traits { typedef std::true_type allow_parallel; typedef std::true_type allow_unsequenced; typedef std::true_type allow_vector; }; template using __collector_t = typename __internal::__policy_traits::type>::__collector_type; template using __allow_vector = typename __internal::__policy_traits::type>::__allow_vector; template using __allow_unsequenced = typename __internal::__policy_traits::type>::__allow_unsequenced; template using __allow_parallel = typename __internal::__policy_traits::type>::__allow_parallel; template auto __is_vectorization_preferred(_ExecutionPolicy&& __exec) -> decltype(__internal::__lazy_and(__exec.__allow_vector(), typename __internal::__is_random_access_iterator<_IteratorTypes...>::type())) { return __internal::__lazy_and(__exec.__allow_vector(), typename __internal::__is_random_access_iterator<_IteratorTypes...>::type()); } template auto __is_parallelization_preferred(_ExecutionPolicy&& __exec) -> decltype(__internal::__lazy_and(__exec.__allow_parallel(), typename __internal::__is_random_access_iterator<_IteratorTypes...>::type())) { return __internal::__lazy_and(__exec.__allow_parallel(), typename __internal::__is_random_access_iterator<_IteratorTypes...>::type()); } template struct __prefer_unsequenced_tag { static constexpr bool value = __internal::__allow_unsequenced::value && __internal::__is_random_access_iterator<_IteratorTypes...>::value; typedef std::integral_constant type; }; template struct __prefer_parallel_tag { static constexpr bool value = __internal::__allow_parallel::value && __internal::__is_random_access_iterator<_IteratorTypes...>::value; typedef std::integral_constant type; }; } // namespace __internal } // namespace __pstl #endif /* _PSTL_EXECUTION_IMPL_H */