_mm_clog_ps
Classification
SVML, Elementary Math Functions, CPUID Test: SSE
Header File
Synopsis
_mm_clog_ps(__m128 a);
Description
Compute the natural logarithm of packed complex numbers in "a", and store the complex results in "dst". Each complex number is composed of two adjacent single-precision (32-bit) floating-point elements, which defines the complex number "complex = vec.fp32[0] + i * vec.fp32[1]".
Operation
DEFINE CLOG(a[31:0], b[31:0]) {
result[31:0] := LOG(SQRT(POW(a, 2.0) + POW(b, 2.0)))
result[63:32] := ATAN2(b, a)
RETURN result
}
FOR j := 0 to 1
i := j*64
dst[i+63:i] := CLOG(a[i+31:i], a[i+63:i+32])
ENDFOR
dst[MAX:128] := 0