$NOTRUNCATE * Copyright (c) 1994 Kevin G. Rhoads, all rights reserved.

*-----------------------------------------------------------------------------* gets '87 status word INTERFACE TO INTEGER*2 FUNCTION SSWRQQ() END * *-----------------------------------------------------------------------------* gets '87 status word -- C Library INTERFACE TO INTEGER*2 FUNCTION & STAT87[FAR,C,ALIAS:'__status87']() * * N.B. ALIAS as supplied uses pre-ANSI (pre MS C/C++v7.0) naming conventions. * However Microsoft used double leading underscores (a single EXPLICIT leading * underscore in C declarations) since MS C v5.1 for _status87, _fpreset, * _control87 and _clear87. The declaration above will link properly with all * Microsoft C or C/C++ versions from 5.0 through 8.x (VC 1.x). * *unsigned int __cdecl _status87(void); /* MS C/C++ 7.0 & later */ *unsigned int _FAR_ _cdecl _status87(void); /* MS C6.0 */ *unsigned int _CDECL _status87(void); /* MS C5.x */ END * *-----------------------------------------------------------------------------* gets '87 control word INTERFACE TO INTEGER*2 FUNCTION SCWRQQ() END * *-----------------------------------------------------------------------------* Sets '87 control word INTERFACE TO SUBROUTINE LCWRQQ(CW) INTEGER*2 CW END * *-----------------------------------------------------------------------------* Sets '87 control word -- C library INTERFACE TO INTEGER*2 FUNCTION & CTRL87[FAR,C,ALIAS:'__control87'](NEW,MASK) INTEGER*2 NEW,MASK * * N.B. ALIAS as supplied uses pre-ANSI (pre MS C/C++v7.0) naming conventions. * However Microsoft used double leading underscores (a single EXPLICIT leading * underscore in C declarations) since MS C v5.1 for _status87, _fpreset, * _control87 and _clear87. The declaration above will link properly with all * Microsoft C or C/C++ versions from 5.0 through 8.x (VC 1.x).

* *unsigned int __cdecl _control87(unsigned int, unsigned int); /* MS C/C++ 7.0 & later */ *unsigned int _FAR_ _cdecl _control87(unsigned int, unsigned int); /* MS C6.0 */ *unsigned int _CDECL _control87(unsigned int,unsigned int); /* MS C5.x */ END * **-----------------------------------------------------------------------------** clears '87 status word and resets FP (C) runtime library INTERFACE TO SUBROUTINE FPRESET[FAR,C,ALIAS:'__fpreset']() * * N.B. ALIAS as supplied uses pre-ANSI (pre MS C/C++v7.0) naming conventions. * However Microsoft used double leading underscores (a single EXPLICIT leading * underscore in C declarations) since MS C v5.1 for _status87, _fpreset, * _control87 and _clear87. The declaration above will link properly with all * Microsoft C or C/C++ versions from 5.0 through 8.x (VC 1.x). * *void __cdecl _fpreset(void); /* MS C/C++ 7.0 & later */ *void _FAR_ _cdecl _fpreset(void); /* MS C6.0 */ *void _CDECL _fpreset(void); /* MS C5.x */ END * **-----------------------------------------------------------------------------** gets '87 status word and clears it -- C Library -** there is (apparently) no way to reset '87 status word in FORTRAN INTERFACE TO & INTEGER*2 FUNCTION CLEAR87[FAR,C,ALIAS:'__clear87'] () * * N.B. ALIAS as supplied uses pre-ANSI (pre MS C/C++v7.0) naming conventions. * However Microsoft used double leading underscores (a single EXPLICIT leading * underscore in C declarations) since MS C v5.1 for _status87, _fpreset, * _control87 and _clear87. The declaration above will link properly with all * Microsoft C or C/C++ versions from 5.0 through 8.x (VC 1.x). * *unsigned int __cdecl _clear87(void); /* MS C/C++ 7.0 & later */ *unsigned int _FAR_ _cdecl _clear87(void); /* MS C6.0 */ *unsigned int _CDECL _clear87(void); /* MS C5.x */ END * **-----------------------------------------------------------------------------** clears '87 status word and resets FP (C) runtime library INTERFACE TO SUBROUTINE RESET87[FAR,C,ALIAS:'__fpreset']() * * N.B. ALIAS as supplied uses pre-ANSI (pre MS C/C++v7.0) naming conventions. * However Microsoft used double leading underscores (a single EXPLICIT leading * underscore in C declarations) since MS C v5.1 for _status87, _fpreset,

* _control87 and _clear87. The declaration above will link properly with all * Microsoft C or C/C++ versions from 5.0 through 8.x (VC 1.x). * *void __cdecl _fpreset(void); /* MS C/C++ 7.0 & later */ *void _FAR_ _cdecl _fpreset(void); /* MS C6.0 */ *void _CDECL _fpreset(void); /* MS C5.x */ END *