Taking advantage of SSE and other CPU extensions

后端 未结 5 485
南笙
南笙 2021-02-04 06:41

Theres are couple of places in my code base where the same operation is repeated a very large number of times for a large data set. In some cases it\'s taking a considerable tim

5条回答
  •  终归单人心
    2021-02-04 07:05

    The SSE intrinsics work with visual c++, GCC and the intel compiler. There is no problem to use them these days.

    Note that you should always keep a version of your code that does not use SSE and constantly check it against your SSE implementation.

    This helps not only for debugging, it is also usefull if you want to support CPUs or architectures that don't support your required SSE versions.

提交回复
热议问题