fma, Qfma

Enables the combining of floating-point multiplies and add/subtract operations.

IDE Equivalent

Windows: Floating Point > Contract Floating-Point Operations

Linux: None

Mac OS X: None

Architectures

IA-64 architecture

Syntax

Linux:

-fma

-no-fma

Mac OS X:

None

Windows:

/Qfma

/Qfma-

Arguments

None

Default

-fma
or/Qfma

Floating-point multiplies and add/subtract operations are combined.

However, if you specify -mp (Linux), /Op (Windows), /fp:strict (Windows), or -fp-model strict (Linux) but do not explicitly specify -fma or /Qfma, the default is -no-fma or /Qfma-.

Description

This option enables the combining of floating-point multiplies and add/subtract operations.

It also enables the contraction of floating-point multiply and add/subtract operations into a single operation. The compiler contracts these operations whenever possible.

Alternate Options

Linux: -IPF-fma (this is a deprecated option)

Windows: /QIPF-fma (this is a deprecated option)

See Also