home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / MATH / LIBM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  361 b   |  23 lines

  1. / libm.h (emx+gcc)
  2.  
  3. #define _LIBM_H
  4. #include <errno.h>
  5.  
  6. #define _xam fxam; fstsww %ax; andb $0x45, %ah
  7.  
  8. #define j_nan cmpb $0x01, %ah; je
  9. #define j_inf cmpb $0x05, %ah; je
  10.  
  11. #if !defined (__MT__)
  12.  
  13. #define SETERRNO(x) \
  14.         movl    x, _errno
  15.  
  16. #else
  17.  
  18. #define SETERRNO(x) \
  19.         call    __errno_fun ;\
  20.         movl    x, (%eax)
  21.  
  22. #endif
  23.