Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

_mm_hypot_ps, _mm256_hypot_ps

Computes the length of the hypotenuse of a right angled triangle. Vector variant of hypot(x) function for a 128-bit/256-bit vector argument of float32 values.

Syntax

extern __m128 _mm_hypot_ps(__m128 v1, __m128 v2);

extern __m256 _mm256_hypot_ps(__m256 v1, __m256 v2);

Arguments

v1

vector with float32 values

v2

vector with float32 values

Description

Computes the length of the hypotenuse of a right angled triangle with sides v1 and v2, defined by:

sqrt (v12 + v22)

Returns

128-bit/256-bit vector with the result of the operation.

NOTE:

Many routines in the Short Vector Math Library (SVML) are more optimized for Intel® microprocessors than for non-Intel microprocessors.