__device__ double scalbn ( double  x,
int  n 
)

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

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


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA