3.138. __nv_floor

原型:

double @__nv_floor(double %f) 

描述:

计算小于或等于x的最大整数值。

返回:

Returns the largest integer value which is less than or equal to x expressed as a floating-point number.
  • __nv_floor( ± ) 返回 ±

  • __nv_floor( ± 0 ) 返回 ± 0

Note:

有关精度信息,请参阅CUDA C++编程指南中的数学函数附录,双精度浮点函数部分。

库可用性:

计算能力2.0:支持

计算能力3.0:支持

计算能力3.5:支持