by CapacitorSet · 8y ago · 0 comments
You'd tell the compiler "target a machine with <basic instruction set>", so it's not allowed to use advanced features like FMA because it can't assume they're supported. With this library, you'd check at run-time if FMA is supported, and then change functions accordingly.
https://gcc.gnu.org/wiki/FunctionMultiVersioning
https://lwn.net/Articles/691932/
https://llvm.org/devmtg/2014-10/Slides/Christopher-Function%...