Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

prec-sqrt, Qprec-sqrt

Improves precision of square root implementations. This feature is only available for ifort.

Syntax

Linux:

-prec-sqrt

-no-prec-sqrt

macOS:

-prec-sqrt

-no-prec-sqrt

Windows:

/Qprec-sqrt

/Qprec-sqrt-

Arguments

None

Default

-no-prec-sqrt
or /Qprec-sqrt-

The compiler uses a faster but less precise implementation of square root.

However, the default is -prec-sqrt or /Qprec-sqrt if any of the following options are specified: /Od, /fltconsistency, or /Qprec on Windows* systems; -O0, -fltconsistency, or -mp1 on Linux* and macOS systems.

Description

This option improves precision of square root implementations. It has a slight impact on speed.

This option inhibits any optimizations that can adversely affect the precision of a square root computation. The result is fully precise square root implementations, with some loss of performance.

IDE Equivalent
None
Alternate Options

None