3.297. __nv_scalbnf

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

Scale floating-point input by integer power of two.

Scale x by \(2^n\) by efficient manipulation of the floating-point exponent.

Returns

Returns x * \(2^n\).

  • __nv_scalbnf( \(\pm 0\) , n) returns \(\pm 0\).

  • __nv_scalbnf(x, 0) returns x.

  • __nv_scalbnf( \(\pm \infty\) , n) returns \(\pm \infty\).