4 ms·
It would be interesting to see how the SIMD versions work for small arrays. I suspect in this case the naive version better, and this could be the reading why
by zakk 9y ago
It would be interesting to see how the SIMD versions work for small arrays. I suspect in this case the naive version better, and this could be the reading why compilers do not convert the code to SIMD instructions...
- gameswithgo 9y agoSIMD tends to always win for pretty small arrays, like around ~25 elements, and probably any size that is evenly divisible by the vector width.