Developer Guide and Reference

Contents

fimf-arch-consistency, Qimf-arch-consistency

Ensures that the math library functions produce consistent results across different microarchitectural implementations of the same architecture.

Syntax

Linux:
-fimf-arch-consistency
=
value
[
:
funclist
]
macOS:
-fimf-arch-consistency
=
value
[
:
funclist
]
Windows:
/Qimf-arch-consistency
:
value
[
:
funclist
]
Arguments
value
Is one of the logical values "true" or "false".
funclist
Is an optional list of one or more math library functions to which the attribute should be applied. If you specify more than one function, they must be separated with commas.
Precision-specific variants like sin and sinf are considered different functions, so you would need to use
-fimf-arch-consistency=true:sin,sinf
(or
/Qimf-arch-consistency:true:sin,sinf
) to specify consistent results for both the single-precision and double-precision sine functions.
You also can specify the symbol /f to denote single-precision divides, symbol / to denote double-precision divides, symbol /l to denote extended-precision divides, and symbol /q to denote quad-precision divides. For example you can specify
-fimf-arch-consistency=true:/
or
/Qimf-arch-consistency:true:/