Computes cosine on an array of double precision (64-bit) floating-point elements.
- Parameters
-
[in] | x | The array of elements on which cosine will be computed. |
[out] | y | Pointer the array where the computed cosines will be stored. |
[in] | length | Length of the arrays specified by x and y. |
- Return values
-
0 | The computation finished successfully. |
2 | x or y argument is not naturally aligned. |
- Optimized implementations
Architecture | Target microarchitecture | Required instruction extensions |
x86-64 | Intel Nehalem | SSE, SSE2, SSE4.1 |
x86-64 | Intel Sandy Bridge | AVX |
x86-64 | Intel Haswell | AVX, AVX2, FMA3 |
x86-64 | AMD Bulldozer | AVX, FMA4 |