2 ms·
> it just sucks when you have to do CPU feature detection and have different code paths for different CPUs. In the Linux kernel they went so far as to actually
by bluetomcat 12y ago
> it just sucks when you have to do CPU feature detection and have different code paths for different CPUs.
In the Linux kernel they went so far as to actually replacing instructions at boot-time at known locations, based on the capabilities of the CPU the code is executing on. This prevents them from maintaining many paths in the compiled code.