hipCUB
|
Define helper math functions. More...
Go to the source code of this file.
Functions | |
template<typename T > | |
BEGIN_HIPCUB_NAMESPACE constexpr __device__ __host__ T | MidPoint (T begin, T end) |
Computes the midpoint of the integers. More... | |
Define helper math functions.
BEGIN_HIPCUB_NAMESPACE constexpr __device__ __host__ T MidPoint | ( | T | begin, |
T | end | ||
) |
Computes the midpoint of the integers.
Extra operation is performed in order to prevent overflow.
begin
and end