<complex>: use hardware FMA on Clang too by AlexGuteniev · Pull Request #5721 · microsoft/STL (original) (raw)
I observe that this is inconsistent with the spelling of
If you want consistency, I'd change <atomic> actually.
The spell in <atomic> allows cx16 insn in any function, and this theoretically permits generating one out of thin air. In contrast, the approach in this PR allows fma only in specific function, for which we have runtime check.
<atomic> does not centralize cx16, and there would be few functions, so it takes more changes, but still may be worth doing.