by nly · 12y ago · 0 comments
GCC added some cool functionality to make this a lot easier recently:
https://gcc.gnu.org/wiki/FunctionMultiVersioning
Especially with SIMD instruction set like AVX-512 -- to be performant you need to do things with direct assembly anyway.