3.257. __nv_remquof

原型:

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

描述:

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

返回值

返回余数。
  • __nv_remquof(x, 0, quo) 返回 NaN。

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

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

注意

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

库可用性:

Compute 2.0: 是

Compute 3.0: 是

Compute 3.5: 是