3 ms·
In addition to many correctness issues, that code is relatively slow. SSE4.1 introduced roundps instruction that's both fast and correct. Unlike AVX2 or FMA3,
by Const-me 6y ago
In addition to many correctness issues, that code is relatively slow.
SSE4.1 introduced roundps instruction that's both fast and correct. Unlike AVX2 or FMA3, SSE4.1 support is almost universal by now. In most of my current projects, I check support on startup and refuse to run if SSE4.1 ain't supported. Just don't forget to set the corresponding macros for DirectXMath, Eigen, etc.