Where is Clang's '_mm256_pow_ps' intri

2019-01-15 21:23发布

问题:

I can't seem to find the intrinsics for either _mm_pow_ps or _mm256_pow_ps, both of which are supposed to be included with 'immintrin.h'.

Does Clang not define these or are they in a header I'm not including?

回答1:

The composite "intrinsics" are actually Intel library inline functions, not provided by other compilers. There's no vpowps instruction.

For that intrinsic to be usable, you need Intel's Short Vector Math Library (SVML). Most people just avoid using them. If it has an implementation of something you want, though, it's worth looking into. IDK what other vector pow implementations exist.

In the intrinsics finder, you can avoid seeing these non-portable functions in your search results if you leave the SVML box unchecked.



标签: clang sse avx