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