Hacker News new | ask | show | jobs
by fulafel 2483 days ago
Yes, and it can make sense to dispatch between compiler-vectorised and non-simd implementations.
1 comments

It does make sense, the issue at hand is how it's done: by checking for the CPU vendor / product line rather than asking the CPU if it has the operations we want.
Yep - capabilities based switching makes most sense when you are just interested on what code can successfully execute, and not making decisions based on known perf characteristics of microarchitectures.

But this subthread was about "where in glibc is SIMD used anyway?" and the answer is that in all code, potentially.