Why can't I use _mm_sin_pd? [duplicate]

2019-07-25 08:31发布

问题:

This question already has an answer here:

  • C++ error: ‘_mm_sin_ps’ was not declared in this scope 3 answers
  • how can I use SVML instructions [duplicate] 1 answer
  • Where is Clang's '_mm256_pow_ps' intrinsic? 1 answer

Specifics says:

__m128d _mm_sin_pd (__m128d a)
#include <immintrin.h>
CPUID Flags: SSE
Description
Compute the sine of packed double-precision (64-bit) floating-point elements in a expressed in radians, and store the results in dst.

But it seems it is not defined?

回答1:

This symbol has a blue header, that means it's part of SVML. Link against it to get the symbol, as the documentation requires it.

SVML will then dispatch the call to the most adequate implementation for your architecture.