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