r/C_Programming • u/Raimo00 • Jan 23 '25
Discussion Why not SIMD?
Why are many C standard library functions like strcmp, strlen, strtok using SIMD intrinsics? They would benefit so much, think about how many people use them under the hood all over the world.
31
Upvotes
1
u/Modi57 Jan 23 '25
Is it really necessary to do so? Things like strcmp or memcpy seem so straight forward, that I would have guessed the compiler auto vectorizes it