3.257. __nv_remquof

原型:

float @__nv_remquof(float %x, float %y, i32* %quo) 

描述:

计算双精度浮点余数,方法与remainder()函数相同。参数quo返回x除以y的部分商值。quo值的符号与 x y 相同,可能不是精确的商值,但在低3位与精确商值一致。

返回:

Returns the remainder.
  • __nv_remquof(x, 0, quo) 返回 NaN。

  • __nv_remquof( ± , y, quo) 返回 NaN。

  • __nv_remquof(x, ± , quo) 返回 x

Note:

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

库可用性:

计算能力2.0:支持

计算能力3.0:支持

计算能力3.5:支持