Copysign - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
float amd_copysignf(float x, float y)#

Produces a value with the magnitude of x and the sign of y (single-precision).

Parameters:
  • x – Magnitude source.

  • y – Sign source.

Returns:

Value with magnitude of x and sign of y.

double amd_copysign(double x, double y)#

Produces a value with the magnitude of x and the sign of y (double-precision).

Parameters:
  • x – Magnitude source.

  • y – Sign source.

Returns:

Value with magnitude of x and sign of y.