diff --git a/algorithms_cpp/include/embb/algorithms/internal/for_each-inl.h b/algorithms_cpp/include/embb/algorithms/internal/for_each-inl.h index ee5cdc1..f8263ad 100644 --- a/algorithms_cpp/include/embb/algorithms/internal/for_each-inl.h +++ b/algorithms_cpp/include/embb/algorithms/internal/for_each-inl.h @@ -91,7 +91,7 @@ class ForEachFunctor { }; template -void ForEachRecurcive(RAI first, RAI last, Function unary, +void ForEachRecursive(RAI first, RAI last, Function unary, const ExecutionPolicy& policy, size_t block_size) { typedef typename std::iterator_traits::difference_type difference_type; difference_type distance = std::distance(first, last); @@ -121,7 +121,7 @@ template void ForEachIteratorCheck(RAI first, RAI last, Function unary, const ExecutionPolicy& policy, size_t block_size, std::random_access_iterator_tag) { - return ForEachRecurcive(first, last, unary, policy, block_size); + return ForEachRecursive(first, last, unary, policy, block_size); } } // namespace internal diff --git a/algorithms_cpp/include/embb/algorithms/internal/reduce-inl.h b/algorithms_cpp/include/embb/algorithms/internal/reduce-inl.h index 01a02d5..d2a8178 100644 --- a/algorithms_cpp/include/embb/algorithms/internal/reduce-inl.h +++ b/algorithms_cpp/include/embb/algorithms/internal/reduce-inl.h @@ -105,7 +105,7 @@ class ReduceFunctor { template -ReturnType ReduceRecurcive(RAI first, RAI last, ReturnType neutral, +ReturnType ReduceRecursive(RAI first, RAI last, ReturnType neutral, ReductionFunction reduction, TransformationFunction transformation, const ExecutionPolicy& policy, size_t block_size) { @@ -144,7 +144,7 @@ ReturnType ReduceIteratorCheck(RAI first, RAI last, ReductionFunction reduction, ReturnType neutral, const ExecutionPolicy& policy, size_t block_size, std::random_access_iterator_tag) { - return ReduceRecurcive(first, last, neutral, reduction, transformation, + return ReduceRecursive(first, last, neutral, reduction, transformation, policy, block_size); }