Scalbn - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
float amd_scalbnf(float x, int n)#

Multiplies a single-precision value by 2 raised to n, using integer scaling.

Parameters:
  • x – Input value.

  • n – Integer scale.

Returns:

x * 2^n.

double amd_scalbn(double x, int n)#

Multiplies a double-precision value by 2 raised to n, using integer scaling.

Parameters:
  • x – Input value.

  • n – Integer scale.

Returns:

x * 2^n.