Skip to content

Commit

Permalink
Add documentation for ceil_div
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Sep 10, 2024
1 parent ef569c3 commit edca157
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libcudacxx/include/cuda/__cmath/ceil_div.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

_LIBCUDACXX_BEGIN_NAMESPACE_CUDA

//! @brief Divides two numbers \p __a and \p __b, rounding up if there is a remainder
//! @param __a The dividend
//! @param __b The divisor
//! @pre \p __a must be non-negative
template <class _Tp,
class _Up,
_CUDA_VSTD::__enable_if_t<_CCCL_TRAIT(_CUDA_VSTD::is_integral, _Tp), int> = 0,
Expand All @@ -58,6 +62,10 @@ _CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14 _Tp ceil_div(con
_LIBCUDACXX_UNREACHABLE();
}

//! @brief Divides two numbers \p __a and \p __b, rounding up if there is a remainder
//! @param __a The dividend
//! @param __b The divisor
//! @pre \p __a must be non-negative
template <class _Tp,
class _Up,
_CUDA_VSTD::__enable_if_t<_CCCL_TRAIT(_CUDA_VSTD::is_integral, _Tp), int> = 0,
Expand Down

0 comments on commit edca157

Please sign in to comment.