AVX log intrinsics (_mm256_log_ps) missing in g++-4.8?

前端 未结 2 1431
温柔的废话
温柔的废话 2020-12-17 22:24

I am trying to utilise some AVX intrinsics in my code and have run into a brick wall with the logarithm intrinsics.

Using the Intel Intrinsics Guide v3.0.1 for Linux

2条回答
  •  死守一世寂寞
    2020-12-17 23:01

    I've posted my implementation of _mm256_log_pd(__m256d) here: https://stackoverflow.com/a/45898937/1915854 . With some effort you should be able to extend it to 8 packed floats instead of 4 doubles, though you need to revise the bit manipulations. And some parts are easies because you don't need to repack odd-/even-numbered 32-bit components of __m256i into __m128i.

提交回复
热议问题