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