| |
Floating-point Precision
In most cases, as floating-point precision increases, so does processor
execution time. The following table shows the floating-point precision
optimization options along with a description of each option's precision
vs. speed. See the Intel® compiler documentation for more complete information
on these options.
| Windows* |
Linux* |
Architecture |
Description
|
| /Op |
-mp |
all |
Strict ANSI C and IEEE 754 Floating Point (subset of /Za or -strict-ansi)
very precise; slows your application down
|
| /Za |
-strict-ansi |
all |
This option enforces strict conformance to the ANSI standard
for C.
|
|
/Qlong_double |
Not available |
all
|
Changes the default size of the long
double type from 64 to 80 bits. This option introduces
a number of incompatibilities with other files compiled
without this option and with calls to library routines.
Therefore, Intel recommends that the use of long
double variables be local to a single file when
you compile with this option.
|
| /Qprec |
-mp1 |
i32
|
Almost, but not quite, as precise as ANSI; faster
than ANSI. All but the most costly operations are done according
to ANSI.
|
| /Qprec_div[-] |
-[no-]prec_div |
i32, i32em
|
By default, the Intel® compiler
converts some division operations into reciprocal multiply
operations, which is less precise but much faster. This option
disables the floating point division-to-multiplication optimization.
If you specify -no-prec-div (Linux)
or /Qprec-div- (Windows),
it enables optimizations that give slightly less precise
results than full IEEE division.
|
| /Qpc{32|64|80} |
-pc{32|64|80} |
i32, i32em
|
Specifies the floating-point format width in
bits, 32, 64, or 80, corresponding to single, double and
extended formats. Rounds to 24, 53, or 64 bits of precision
respectively for n=[32|64|80].
|
| /Qrcd |
-rcd |
i32
|
Removes code that truncates during float to
integer conversions.
Improves the performance of code that requires floating-point-to-integer
conversions.
|
|

|
|