Fdim - Fdim - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
float amd_fdimf(float x, float y)#

Computes the positive difference max(x - y, 0) for single-precision values.

Parameters:
  • x – Minuend.

  • y – Subtrahend.

Returns:

Positive difference.

double amd_fdim(double x, double y)#

Computes the positive difference max(x - y, 0) for double-precision values.

Parameters:
  • x – Minuend.

  • y – Subtrahend.

Returns:

Positive difference.