home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / pc_hw / fpu / stat87.txh < prev   
Encoding:
Text File  |  1995-07-10  |  1.1 KB  |  33 lines

  1. @c ----------------------------------------------------------------------
  2. @node _status87, cpu
  3. @subheading Syntax
  4.  
  5. @example
  6. #include <float.h>
  7.  
  8. unsigned int _status87(void);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. Returns the status word of the FPU, which indicate the results of the
  14. most recently completed FPU operation:
  15.  
  16. @example
  17. ---- ---- ---- ---X = SW_INVALID - invalid operation
  18. ---- ---- ---- --X- = SW_DENORMAL - denormalized operand
  19. ---- ---- ---- -X-- = SW_ZERODIVIDE - division by zero
  20. ---- ---- ---- X--- = SW_OVERFLOW - overflow
  21. ---- ---- ---X ---- = SW_UNDERFLOW - underflow
  22. ---- ---- --X- ---- = SW_INEXACT - loss of precision
  23. ---- ---- -X-- ---- = SW_STACKFAULT - stack over/under flow
  24. ---- ---- X--- ---- = SW_ERRORSUMMARY - set if any errors
  25. -X-- -XXX ---- ---- = SW_COND - condition code
  26. ---- ---X ---- ---- = SW_C0
  27. ---- --X- ---- ---- = SW_C1
  28. ---- -X-- ---- ---- = SW_C2
  29. -X-- ---- ---- ---- = SW_C3
  30. --XX X--- ---- ---- = SW_TOP - top of stack (use SW_TOP_SHIFT to shift it)
  31. X--- ---- ---- ---- = SW_BUSY - fpu is busy
  32. @end example
  33.