Hypot - 5.2 English - 68552

AOCL API Guide (68552)

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

Computes sqrt(x^2 + y^2) for two single-precision inputs.

Parameters:
  • x – First value.

  • y – Second value.

Returns:

Euclidean norm of (x, y).

double amd_hypot(double x, double y)#

Computes sqrt(x^2 + y^2) for two double-precision inputs.

Parameters:
  • x – First value.

  • y – Second value.

Returns:

Euclidean norm of (x, y).