diff options
Diffstat (limited to 'pstl/include/pstl/internal/unseq_backend_simd.h')
-rw-r--r-- | pstl/include/pstl/internal/unseq_backend_simd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pstl/include/pstl/internal/unseq_backend_simd.h b/pstl/include/pstl/internal/unseq_backend_simd.h index 7916d8088a43..af2a143bc58a 100644 --- a/pstl/include/pstl/internal/unseq_backend_simd.h +++ b/pstl/include/pstl/internal/unseq_backend_simd.h @@ -65,7 +65,7 @@ template <class _Index, class _DifferenceType, class _Pred> bool __simd_or(_Index __first, _DifferenceType __n, _Pred __pred) noexcept { -#if _PSTL_EARLYEXIT_PRESENT +#if defined(_PSTL_EARLYEXIT_PRESENT) _DifferenceType __i; _PSTL_PRAGMA_VECTOR_UNALIGNED _PSTL_PRAGMA_SIMD_EARLYEXIT @@ -105,7 +105,7 @@ template <class _Index, class _DifferenceType, class _Compare> _Index __simd_first(_Index __first, _DifferenceType __begin, _DifferenceType __end, _Compare __comp) noexcept { -#if _PSTL_EARLYEXIT_PRESENT +#if defined(_PSTL_EARLYEXIT_PRESENT) _DifferenceType __i = __begin; _PSTL_PRAGMA_VECTOR_UNALIGNED // Do not generate peel loop part _PSTL_PRAGMA_SIMD_EARLYEXIT for (; __i < __end; ++__i) @@ -165,7 +165,7 @@ template <class _Index1, class _DifferenceType, class _Index2, class _Pred> std::pair<_Index1, _Index2> __simd_first(_Index1 __first1, _DifferenceType __n, _Index2 __first2, _Pred __pred) noexcept { -#if _PSTL_EARLYEXIT_PRESENT +#if defined(_PSTL_EARLYEXIT_PRESENT) _DifferenceType __i = 0; _PSTL_PRAGMA_VECTOR_UNALIGNED _PSTL_PRAGMA_SIMD_EARLYEXIT @@ -387,7 +387,7 @@ __simd_adjacent_find(_Index __first, _Index __last, _BinaryPredicate __pred, boo typedef typename std::iterator_traits<_Index>::difference_type _DifferenceType; _DifferenceType __i = 0; -#if _PSTL_EARLYEXIT_PRESENT +#if defined(_PSTL_EARLYEXIT_PRESENT) //Some compiler versions fail to compile the following loop when iterators are used. Indices are used instead const _DifferenceType __n = __last - __first - 1; _PSTL_PRAGMA_VECTOR_UNALIGNED |