Should I use SIMD or vector extensions or something else?

前端 未结 3 1640
南旧
南旧 2021-02-01 20:55

I\'m currently develop an open source 3D application framework in c++ (with c++11). My own math library is designed like the XNA math library, also with SIMD in mind. But curren

3条回答
  •  灰色年华
    2021-02-01 21:33

    I suggest that you learn about expression templates (custom operator implementations that use proxy objects). In this way, you can avoid doing performance-killing load/store around each individual operation, and do them only once for the entire computation.

提交回复
热议问题