fp-port, Qfp-port

Rounds floating-point results after floating-point operations.

IDE Equivalent

Windows: Floating-Point > Round Floating-Point Results
Linux: None

Architectures

-fp-port: IA-32, Intel® EM64T

/Qfp-port: IA-32

Syntax

Linux: -fp-port
-no-fp-port
Windows:  /Qfp-port
/Qfp-port-

Arguments

None

Default

Linux: ON
Windows: OFF
On Linux systems, floating-point results are rounded after floating-point operations; on Windows systems, they are not.

Description

This option rounds floating-point results after floating-point operations. Rounding to user-specified precision occurs at assignments and type conversions. This has some impact on speed.

On Windows systems, the default is to keep results of floating-point operations in higher precision; to get this behavior on Linux systems, specify -no-fp-port. This provides better performance but less consistent floating-point results.

Alternate Options

Linux: -fp_port
Windows: /Qfp_port

See Also

Optimizing Applications: Floating-point Options for IA-32 and Intel(R) EM64T