Ldexp - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 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.