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