home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / RTLINSRC.ZIP / MATHERR.ASI < prev    next >
Encoding:
Text File  |  1992-06-10  |  1.8 KB  |  44 lines

  1. ;[]-----------------------------------------------------------------[]
  2. ;|      MATHERR.ASI  --  Data structures for reporting math errors   |
  3. ;|                                                                   |
  4. ;|      C/C++ Run Time Library   Version 4.0                         |
  5. ;|                                                                   |
  6. ;|      Copyright (c) 1987, 1991 by Borland International Inc.       |
  7. ;|      All Rights Reserved.                                         |
  8. ;[]-----------------------------------------------------------------[]
  9.  
  10. ;       The exceptionPlus is the standard matherr exception plus a
  11. ;       pointer to an iNDP-87 environment dump.
  12.  
  13. exceptionPlus   STRUC
  14.         exc_type        dw      ?
  15.         exc_name        dd      ?
  16.         exc_arg1        dq      ?
  17.         exc_arg2        dq      ?
  18.         exc_retval      dq      ?
  19.         exc_environ     dd      ?       ; used when iNDP-87 interrupts
  20. exceptionPlus   ENDS
  21.  
  22.  
  23. ; enumerated values of exc_type:
  24.  
  25. _DOMAIN         equ     1       ; parameter not in valid domain
  26. _SING           equ     2       ; function is incalculable at this place
  27. _OVERFLOW       equ     3       ; result exceeds representable range
  28. _UNDERFLOW      equ     4       ; result too close to zero to be represented
  29. _TLOSS          equ     5       ; total loss of precision (eg. Sine (2**65))
  30. _PLOSS          equ     6       ; partial precision loss
  31.  
  32.  
  33. ; An iNDP_image is put into memory by the FSTENV instruction.
  34.  
  35. iNDP_environ    STRUC
  36.         ndp_control     dw      ?
  37.         ndp_status      dw      ?
  38.         ndp_tags        dw      ?
  39.         ndp_ip          dw      ?
  40.         ndp_ip_opcode   dw      ?
  41.         ndp_dp          dw      ?
  42.         ndp_dptop       dw      ?
  43. iNDP_environ    ENDS
  44.