From d902a115dfbe3c76d1f8966ed04f08b9768f69c3 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Mon, 9 Sep 2024 09:48:26 +0200 Subject: [PATCH] Add documentation for `ceil_div` --- libcudacxx/include/cuda/__cmath/ceil_div.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libcudacxx/include/cuda/__cmath/ceil_div.h b/libcudacxx/include/cuda/__cmath/ceil_div.h index ce084ff41b..769e063ed9 100644 --- a/libcudacxx/include/cuda/__cmath/ceil_div.h +++ b/libcudacxx/include/cuda/__cmath/ceil_div.h @@ -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 = 0, @@ -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 = 0,