__device__ float scalbnf ( float  x,
int  n 
)

Scale x by $2^n$ by efficient manipulation of the floating-point exponent.

Returns:
Returns x * $2^n$.
  • scalbnf($\pm 0$, n) returns $\pm 0$.
  • scalbnf(x, 0) returns x.
  • scalbnf($\pm \infty$, n) returns $\pm \infty$.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA