3.214. __nv_ldexpf

float @__nv_ldexpf(float %x, i32 %y)

Calculate the value of \(x\cdot 2^{exp}\).

Calculate the value of \(x\cdot 2^{exp}\) of the input arguments x and exp.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.

Returns

  • __nv_ldexpf(x) returns \(\pm \infty\) if the correctly calculated value is outside the double floating point range.