Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h - …
Browse files Browse the repository at this point in the history
…fix review comment: fix condition check in __find_start_point_in

Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Dec 4, 2024
1 parent 6ad8170 commit 6dd39e7
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,8 @@ _split_point_t<_Index>
__find_start_point_in(const _Rng1& __rng1, const _Index __rng1_from, _Index __rng1_to, const _Rng2& __rng2,
const _Index __rng2_from, _Index __rng2_to, const _Index __i_elem, _Compare __comp)
{
assert(__rng1_from <= __rng1_to);
assert(__rng2_from <= __rng2_to);

assert(__rng1_to > 0 || __rng2_to > 0);

if constexpr (!std::is_pointer_v<_Rng1>)
assert(__rng1_to <= __rng1.size());
if constexpr (!std::is_pointer_v<_Rng2>)
assert(__rng2_to <= __rng2.size());
assert(0 <= __rng1_from && __rng1_from < __rng1_to && __rng1_to < __rng1.size());
assert(0 <= __rng2_from && __rng2_from < __rng2_to && __rng2_to < __rng2.size());

// We shouldn't call this function with __i_elem == 0 because we a priory know that
// split point for this case is {0, 0}
Expand Down

0 comments on commit 6dd39e7

Please sign in to comment.