_mm_hypot_pd
Classification
SVML, Trigonometry, CPUID Test: SSE
Header File
Synopsis
_mm_hypot_pd(__m128d a, __m128d b);
Description
Compute the length of the hypotenous of a right triangle, with the lengths of the other two sides of the triangle stored as packed double-precision (64-bit) floating-point elements in "a" and "b", and store the results in "dst".
Operation
FOR j := 0 to 1
i := j*64
dst[i+63:i] := SQRT(POW(a[i+63:i], 2.0) + POW(b[i+63:i], 2.0))
ENDFOR
dst[MAX:128] := 0