Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <float.h>
    void _fpreset( void );

Description:
    After a floating-point exception, it may be necessary to call the
    _fpreset function before any further floating-point operations are
    attempted.

Returns:
    No value is returned.

Example:
    #include <stdio.h>
    #include <float.h>

    char *status[2] = { "No", "  " };

    void main()
      {
        unsigned int fp_status;

        fp_status = _status87();

        printf( "80x87 status\n" );
        printf( "%s invalid operation\n",
                status[ (fp_status & SW_INVALID) == 0 ] );
        printf( "%s denormalized operand\n",
                status[ (fp_status & SW_DENORMAL) == 0 ] );
        printf( "%s divide by zero\n",
                status[ (fp_status & SW_ZERODIVIDE) == 0 ] );
        printf( "%s overflow\n",
                status[ (fp_status & SW_OVERFLOW) == 0 ] );
        printf( "%s underflow\n",
                status[ (fp_status & SW_UNDERFLOW) == 0 ] );
        printf( "%s inexact result\n",
                status[ (fp_status & SW_INEXACT) == 0 ] );
        _fpreset();
      }

Classification:
    Intel

Systems:
    All, Netware

See Also:
    _clear87, _status87

See Also: _clear87 _status87

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson