fp-speculation, Qfp-speculation

Tells the compiler the mode in which to speculate on floating-point operations.

IDE Equivalent

Windows: Optimization > Floating-Point Speculation

Linux: Floating Point > Floating-Point Speculation

Mac OS X: Floating Point > Floating-Point Speculation

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-fp-speculation=mode

Windows:

/Qfp-speculation:mode

Arguments

mode

Is the mode for floating-point operations. Possible values are:

fast

Tells the compiler to speculate on floating-point operations.

safe

Tells the compiler to disable speculation if there is a possibility that the speculation may cause a floating-point exception.

strict

Tells the compiler to disable speculation on floating-point operations.

off

This is the same as specifying strict.

Default

-fp-speculation=fast
or/Qfp-speculation:fast

The compiler speculates on floating-point operations. This is also the behavior when optimizations are enabled. However, if you specify no optimizations (-O0 on Linux* OS; /Od on Windows* OS), the default is -fp-speculation=safe (Linux* OS) or /Qfp-speculation:safe (Windows* OS).

Description

This option tells the compiler the mode in which to speculate on floating-point operations.

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.