pow for SSE types

前端 未结 4 2100
感情败类
感情败类 2020-12-10 15:40

I do some explicitly vectorised computations using SSE types, such as __m128 (defined in xmmintrin.h etc), but now I need to raise all elements of

4条回答
  •  长情又很酷
    2020-12-10 16:27

    An AVX version of the ssemath library is now available: http://software-lisc.fbk.eu/avx_mathfun/

    with the library you can use:

    exp256_ps(y*log256_ps(x)); // for pow(x, y)
    

提交回复
热议问题