Home | History | Annotate | Line # | Download | only in include
ieeefp.h revision 1.1
      1  1.1  jtc /*
      2  1.1  jtc  * Written by J.T. Conklin, Apr 11, 1995
      3  1.1  jtc  * Public domain.
      4  1.1  jtc  */
      5  1.1  jtc 
      6  1.1  jtc #ifndef _PMAX_IEEEFP_H_
      7  1.1  jtc #define _PMAX_IEEEFP_H_
      8  1.1  jtc 
      9  1.1  jtc typedef int fp_except;
     10  1.1  jtc #define FP_X_IMP	0x01	/* imprecise (loss of precision) */
     11  1.1  jtc #define FP_X_UFL	0x02	/* underflow exception */
     12  1.1  jtc #define FP_X_OFL	0x04	/* overflow exception */
     13  1.1  jtc #define FP_X_DZ		0x08	/* divide-by-zero exception */
     14  1.1  jtc #define FP_X_INV	0x10	/* invalid operation exception */
     15  1.1  jtc 
     16  1.1  jtc typedef enum {
     17  1.1  jtc     FP_RN=0,			/* round to nearest representable number */
     18  1.1  jtc     FP_RZ=1,			/* round to zero (truncate) */
     19  1.1  jtc     FP_RP=2,			/* round toward positive infinity */
     20  1.1  jtc     FP_RM=3			/* round toward negative infinity */
     21  1.1  jtc } fp_rnd;
     22  1.1  jtc 
     23  1.1  jtc #endif /* _PMAX_IEEEFP_H_ */
     24