Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

QERFC may return incorrect results if floating-point exceptions are unmasked

$
0
0

Reference Number : dpd200178477

Version : Intel® Fortran Compiler Versions 12, 13 and 14.

Operating System : Windows*, Linux*, OS X*

Problem Description : For certain values of the argument, the result of a call to the REAL(16) version of the complementary error function ERFC, QERFC, can be influenced by a floating-point exception that occurred during a preceding call, resulting in the return of an inaccurate or incorrect result. This behavior occurs only when floating-point exceptions have been unmasked, for example by compiling the main routine with /fpe:0 (Windows*) or -fpe0 (Linux* or OS X*), or by a call to IEEE_SET_HALTING_MODE.

Status : This issue is under investigation and may be addressed in a future compiler.

Workaround : Ensure that floating-point exceptions are masked when calling a REAL(16) function such as QERFC or the generic equivalent ERFC with a REAL(16) argument. Floating-point exceptions are masked by default in the Intel compiler at all optimization levels.



Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>