Where is Clang's '_mm256_pow_ps' intri

2019-01-15 21:52发布

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?

标签: clang sse avx
1条回答
太酷不给撩
2楼-- · 2019-01-15 22:05

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.

查看更多
登录 后发表回答