Developer Guide and Reference

Contents

fimf-accuracy-bits, Qimf-accuracy-bits

Defines the relative error for math library function results, including division and square root.

Syntax

Linux:
-fimf-accuracy-bits
=
bits
[
:
funclist
]
macOS:
-fimf-accuracy-bits
=
bits
[
:
funclist
]
Windows:
/Qimf-accuracy-bits
:
bits
[
:
funclist
]
Arguments
bits
Is a positive, floating-point number indicating the number of correct bits the compiler should use.
The format for the number is [digits] [.digits] [ { e | E }[sign]digits].
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-accuracy-bits=23:sin,sinf
(or
/Qimf-accuracy-bits:23:sin,sinf
) to specify the relative error 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-accuracy-bits=10.0:/f
or
/Qimf-accuracy-bits:10.0:/f
.
Default
-fimf-precision