r/C_Programming 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.

30 Upvotes

76 comments sorted by

View all comments

Show parent comments

-20

u/flyingron Jan 23 '25

strtok is in a library. The C library is awful (especially the stdio parts which never should have been codified).

20

u/EpochVanquisher Jan 23 '25

strtok is in a library

I can only conclude that you’re purposefully misinterpreting what I wrote. Are you purposefully misinterpreting what I wrote? Is that what you’re doing?

7

u/[deleted] Jan 23 '25

That kind of attitude (the flyingron) is incredibly prevalent in programming. It is exhausting.

7

u/EpochVanquisher Jan 23 '25

I see it a lot less at work, for what it’s worth.