Aligned types and passing arguments by value

前端 未结 2 1706
日久生厌
日久生厌 2021-02-04 11:48

Passing aligned types or structures with aligned types by value doesn\'t work with some implementations. This breaks STL containers, because some of the methods (such as resize)

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 12:29

    the oftenly used resize() function is causing all the alignment and perhaps you can try to specialise vector template for __m128 ?

提交回复
热议问题