The information in this article applies to:
SUMMARYPage 17 of the Microsoft FORTRAN "Advanced Topics" manual for version 5.1 includes the following statement: When one of the floating-point exception conditions given in Table 1.2 above occurs, the appropriate bit in the status word is set. This flag remains set until you clear it.While the GETSTATUSFPQQ and SSWRQQ subroutines returns the value of the status word, there is no FORTRAN function or subroutine that will modify the status word. MORE INFORMATION
Under normal circumstances, when the math coprocessor generates a
floating-point exception, an exception handler is called which can
clear the status word. If it is necessary to reset the control word at
another time, the FORTRAN run-time library provides the C functions
_clear87 and _fpreset which an application can access using an
INTERFACE statement. The _clear87 function returns the value of the
status word before changing the status word; the _fpreset subroutine
resets the status word and returns no value.
Sample Code
Additional query words: 1.00 4.00 4.01 4.10 5.00 5.10 8087 80287 80387 80487 status exception kbinf
Keywords : kbcode kbFortranPS kbLangFortran |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |