3 ms·
I depends on the compiler you use and the approaches it has to optional CPU features and the options you pass to the compiler. For example, with GCC you can se
by pabs3 6y ago
I depends on the compiler you use and the approaches it has to optional CPU features and the options you pass to the compiler.
For example, with GCC you can set the baseline CPU features. You can also use function multi-versioning to provide faster functions for CPUs with newer features.
https://lwn.net/Articles/691932/ https://lwn.net/Articles/691932/