_mm256_cexp_ps
Classification
SVML, Elementary Math Functions, CPUID Test: AVX
Header File
Synopsis
_mm256_cexp_ps(__m256 a);
Description
Compute the exponential value of "e" raised to the power 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 CEXP(a[31:0], b[31:0]) {
result[31:0] := POW(FP32(e), a[31:0]) * COS(b[31:0])
result[63:32] := POW(FP32(e), a[31:0]) * SIN(b[31:0])
RETURN result
}
FOR j := 0 to 3
i := j*64
dst[i+63:i] := CEXP(a[i+31:i], a[i+63:i+32])
ENDFOR
dst[MAX:256] := 0