2 ms·
If you want to dig around with the lower level implementation of using SIMD instructions, you might need to drop to assembly to really get into the guts of thin
by zamnos 3y ago
If you want to dig around with the lower level implementation of using SIMD instructions, you might need to drop to assembly to really get into the guts of things just to see it in action. But if you just want your code to take advantage of it, you can just use Numpy in Python, which will probe what the CPU supports and optimize for that. SIMD is not really new, the first modern opcode to do SIMD was MMX, introduced in Intel in 1997, but the idea has been around since the 70's. So your laptop should at least support that command, and a whole host of others.
https://numpy.org/doc/stable/reference/simd/index.html https://numpy.org/doc/stable/reference/simd/index.html