Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 11, 2023
1 parent 64ed630 commit ab6c6ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cuco/detail/extent/extent.inl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ template <typename SizeType, std::size_t N>
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 {}
Expand Down Expand Up @@ -128,6 +129,5 @@ template <typename T>
inline constexpr bool is_window_extent_v = is_window_extent<T>::value;

} // namespace detail

} // namespace experimental
} // namespace cuco
7 changes: 7 additions & 0 deletions include/cuco/utility/fast_int.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit ab6c6ed

Please sign in to comment.