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