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