Does rewriting memcpy/memcmp/… with SIMD instructions make sense?

前端 未结 4 941
一向
一向 2021-02-05 15:38

Does rewriting memcpy/memcmp/... with SIMD instructions make sense in a large scale software?

If so, why doesn\'t GCC generate SIMD instructions for these library functi

4条回答
  •  失恋的感觉
    2021-02-05 16:17

    on x86 hardware, it should not matter much, with out-of-order processing. Processor will achieve necessary ILP and try to issue max number of load/store operations per cycle for memcpy, whether it be SIMD or Scalar instruction set.

提交回复
热议问题