From ab6c6edea0c77612d4f7ed9bb25e334a18537cd8 Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Mon, 11 Dec 2023 14:43:37 -0800 Subject: [PATCH] Resolve conflicts --- include/cuco/detail/extent/extent.inl | 4 ++-- include/cuco/utility/fast_int.cuh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/cuco/detail/extent/extent.inl b/include/cuco/detail/extent/extent.inl index 59584bd2a..6fa8e0238 100644 --- a/include/cuco/detail/extent/extent.inl +++ b/include/cuco/detail/extent/extent.inl @@ -31,7 +31,8 @@ template struct window_extent { using value_type = SizeType; ///< Extent value type - __host__ __device__ explicit constexpr operator value_type() const noexcept { return N; } + __host__ __device__ constexpr value_type value() const noexcept { return N; } + __host__ __device__ explicit constexpr operator value_type() const noexcept { return value(); } private: __host__ __device__ explicit constexpr window_extent() noexcept {} @@ -128,6 +129,5 @@ template inline constexpr bool is_window_extent_v = is_window_extent::value; } // namespace detail - } // namespace experimental } // namespace cuco diff --git a/include/cuco/utility/fast_int.cuh b/include/cuco/utility/fast_int.cuh index ad6e8f199..4201b2529 100644 --- a/include/cuco/utility/fast_int.cuh +++ b/include/cuco/utility/fast_int.cuh @@ -51,6 +51,13 @@ struct fast_int { evaluate_magic_numbers(); } + /** + * @brief Get the underlying integer value. + * + * @return Underlying value + */ + __host__ __device__ constexpr value_type value() const noexcept { return value_; } + /** * @brief Explicit conversion operator to the underlying value type. *