3.22. __nv_ceilf

float @__nv_ceilf(float %x)

Calculate ceiling of the input argument.

Compute the smallest integer value not less than x.

Returns

Returns \(\lceil x \rceil\) expressed as a floating-point number.

  • __nv_ceilf( \(\pm 0\) ) returns \(\pm 0\).

  • __nv_ceilf( \(\pm \infty\) ) returns \(\pm \infty\).