@@ -51,32 +51,38 @@ CUB_NAMESPACE_BEGIN
5151
5252#ifndef CUB_MAX
5353// / Select maximum(a, b)
54+ // / Deprecated since [2.8]
5455# define CUB_MAX (a, b ) (((b) > (a)) ? (b) : (a))
5556#endif
5657
5758#ifndef CUB_MIN
5859// / Select minimum(a, b)
60+ // / Deprecated since [2.8]
5961# define CUB_MIN (a, b ) (((b) < (a)) ? (b) : (a))
6062#endif
6163
6264#ifndef CUB_QUOTIENT_FLOOR
6365// / Quotient of x/y rounded down to nearest integer
66+ // / Deprecated since [2.8]
6467# define CUB_QUOTIENT_FLOOR (x, y ) ((x) / (y))
6568#endif
6669
6770#ifndef CUB_QUOTIENT_CEILING
6871// / Quotient of x/y rounded up to nearest integer
72+ // / Deprecated since [2.8]
6973// FIXME(bgruber): the following computation can overflow, use cuda::ceil_div instead
7074# define CUB_QUOTIENT_CEILING (x, y ) (((x) + (y) - 1 ) / (y))
7175#endif
7276
7377#ifndef CUB_ROUND_UP_NEAREST
7478// / x rounded up to the nearest multiple of y
79+ // / Deprecated since [2.8]
7580# define CUB_ROUND_UP_NEAREST (x, y ) (CUB_QUOTIENT_CEILING(x, y) * y)
7681#endif
7782
7883#ifndef CUB_ROUND_DOWN_NEAREST
7984// / x rounded down to the nearest multiple of y
85+ // / Deprecated since [2.8]
8086# define CUB_ROUND_DOWN_NEAREST (x, y ) (((x) / (y)) * y)
8187#endif
8288
0 commit comments