Fastest Implementation of the Natural Exponential Function Using SSE

前端 未结 4 1979
后悔当初
后悔当初 2020-11-28 10:17

I\'m looking for an approximation of the natural exponential function operating on SSE element. Namely - __m128 exp( __m128 x ).

I have an implementat

4条回答
  •  一个人的身影
    2020-11-28 10:30

    There is a paper about creating fast versions of these equations (tanh, cosh, artanh, sinh, etc):

    http://ijeais.org/wp-content/uploads/2018/07/IJAER180702.pdf "Creating a Compiler Optimized Inlineable Implementation of Intel Svml Simd Intrinsics"

    their tanh equation 6, on page 9 is very similar to @NicSchraudolph answer

提交回复
热议问题