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