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
…remove extra condition checks from __find_start_point_in

Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Dec 10, 2024
1 parent f67503f commit 3089f71
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ _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)
{
if (__i_elem == 0)
return _split_point_t<_Index>{ 0, 0 };

if (__rng1_from == __rng1_to)
return _split_point_t<_Index>{ __rng1_from, __rng2_from + __i_elem };

if (__rng2_from == __rng2_to)
return _split_point_t<_Index>{ __rng1_from + __i_elem, __rng2_from };

// ----------------------- EXAMPLE ------------------------
// Let's consider the following input data:
// rng1.size() = 10
Expand Down

0 comments on commit 3089f71

Please sign in to comment.