Ldexp - Ldexp - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
float amd_ldexpf(float x, int exp)#

Multiplies a single-precision floating-point number by 2 raised to exp.

Parameters:
  • x – Input value.

  • exp – Exponent of two.

Returns:

x * 2^exp.

double amd_ldexp(double x, int exp)#

Multiplies a double-precision floating-point number by 2 raised to exp.

Parameters:
  • x – Input value.

  • exp – Exponent of two.

Returns:

x * 2^exp.