Developer Guide and Reference

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 (
v1
2
+
v2
2
)
Returns
128-bit/256-bit vector with the result of the operation.
Many routines in the
svml
library are more optimized for Intel® microprocessors than for non-Intel microprocessors.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804