3.213. __nv_ldexp

double @__nv_ldexp(double %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, Double-Precision Floating-Point Functions section.

Returns

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