What is floating point speculation and how does it differ from the compiler's floating point model
问题 The Intel C++ compiler provides two options for controlling floating point: -fp-speculation (fast/safe/strict/off) -fp-model (precise/fast/strict and source/double/extended) I think I understand what fp-model does. But what is fp-speculation and how does it relate to fp-model? I have yet to find any intel doc which explains this! 回答1: -fp-model influences how floating-point computations are carried out, and can change the numeric result (by licensing unsafe optimizations or by changing the