3 ms·
> creating multiple code paths is a pain GCC added some cool functionality to make this a lot easier recently: https://gcc.gnu.org/wiki/FunctionMultiVersionin
by nly 12y ago
> creating multiple code paths is a pain
GCC added some cool functionality to make this a lot easier recently:
https://gcc.gnu.org/wiki/FunctionMultiVersioning https://gcc.gnu.org/wiki/FunctionMultiVersioning
- innocenat 12y agoNo it isn't. You are still going to need to maintain multiple code path. Especially with SIMD instruction set like AVX-512 -- to be performant you need to do things with direct assembly anyway.
- Keyframe 12y agoSeems nice, but isn't all that much different from checking support yourself and initializing function pointers to correct functions - more work, but portable.