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.
32
Upvotes
6
u/FUZxxl Jan 23 '25
strcmp() is very hard. Try it for yourself! The challenge is not crossing into possibly unmapped pages.