Skip to content

Commit

Permalink
[skip-tests] Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Oct 24, 2023
1 parent 3634dfb commit 1bdef5b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "../cstdlib"

#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER)
#pragma GCC system_header
# pragma GCC system_header
#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv
_CCCL_IMPLICIT_SYSTEM_HEADER
#endif // !_CCCL_COMPILER_NVHPC
Expand Down Expand Up @@ -118,7 +118,9 @@ struct __fn
_LIBCUDACXX_INLINE_VISIBILITY static constexpr auto
__magnitude_geq(_Iter_difference __a, _Iter_difference __b) noexcept
{
return __a == 0 ? __b == 0 : __a > 0 ? __a >= __b : __a <= __b;
return __a == 0 ? __b == 0 : //
__a > 0 ? __a >= __b
: __a <= __b;
};

public:
Expand Down Expand Up @@ -163,8 +165,8 @@ struct __fn
{
__i = _CUDA_VSTD::move(__bound_sentinel);
}
// Otherwise, if `S` and `I` model `sized_sentinel_for<S, I>`, equivalent to `ranges::advance(i, bound_sentinel -
// i)`.
// Otherwise, if `S` and `I` model `sized_sentinel_for<S, I>`,
// equivalent to `ranges::advance(i, bound_sentinel - i)`.
else if constexpr (sized_sentinel_for<_Sp, _Ip>)
{
(*this)(__i, __bound_sentinel - __i);
Expand All @@ -182,8 +184,8 @@ struct __fn
// Preconditions:
// * If `n > 0`, [i, bound_sentinel) denotes a range.
// * If `n == 0`, [i, bound_sentinel) or [bound_sentinel, i) denotes a range.
// * If `n < 0`, [bound_sentinel, i) denotes a range, `I` models `bidirectional_iterator`, and `I` and `S` model
// `same_as<I, S>`.
// * If `n < 0`, [bound_sentinel, i) denotes a range, `I` models `bidirectional_iterator`,
// and `I` and `S` model `same_as<I, S>`.
// Returns: `n - M`, where `M` is the difference between the ending and starting position.
_LIBCUDACXX_TEMPLATE(class _Ip, class _Sp)
_LIBCUDACXX_REQUIRES(input_or_output_iterator<_Ip> _LIBCUDACXX_AND sentinel_for<_Sp, _Ip>)
Expand Down

0 comments on commit 1bdef5b

Please sign in to comment.