@@ -513,11 +513,11 @@ __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result, _UnaryO
513
513
_CombinerType __combined_init{__init, &__binary_op};
514
514
515
515
_PSTL_PRAGMA_DECLARE_REDUCTION (__bin_op, _CombinerType)
516
- _PSTL_PRAGMA_SIMD_SCAN (__bin_op : __init_ )
516
+ _PSTL_PRAGMA_SIMD_SCAN (__bin_op : __combined_init )
517
517
for (_Size __i = 0 ; __i < __n; ++__i)
518
518
{
519
519
__result[__i] = __combined_init.__value_ ;
520
- _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN (__init_ )
520
+ _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN (__combined_init )
521
521
__combined_init.__value_ = __binary_op (__combined_init.__value_ , __unary_op (__first[__i]));
522
522
}
523
523
return std::make_pair (__result + __n, __combined_init.__value_ );
@@ -553,11 +553,11 @@ __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result, _UnaryO
553
553
_CombinerType __combined_init{__init, &__binary_op};
554
554
555
555
_PSTL_PRAGMA_DECLARE_REDUCTION (__bin_op, _CombinerType)
556
- _PSTL_PRAGMA_SIMD_SCAN (__bin_op : __init_ )
556
+ _PSTL_PRAGMA_SIMD_SCAN (__bin_op : __combined_init )
557
557
for (_Size __i = 0 ; __i < __n; ++__i)
558
558
{
559
559
__combined_init.__value_ = __binary_op (__combined_init.__value_ , __unary_op (__first[__i]));
560
- _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN (__init_ )
560
+ _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN (__combined_init )
561
561
__result[__i] = __combined_init.__value_ ;
562
562
}
563
563
return std::make_pair (__result + __n, __combined_init.__value_ );
0 commit comments