ieeefp.h revision 1.1 1 /*
2 * Written by J.T. Conklin, Apr 6, 1995
3 * Public domain.
4 */
5
6 #ifndef _M68K_IEEEFP_H_
7 #define _M68K_IEEEFP_H_
8
9 typedef int fp_except;
10 #define FP_X_IMP 0x08 /* imprecise (loss of precision) */
11 #define FP_X_DZ 0x10 /* divide-by-zero exception */
12 #define FP_X_UFL 0x20 /* underflow exception */
13 #define FP_X_OFL 0x40 /* overflow exception */
14 #define FP_X_INV 0x80 /* 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_RM=2, /* round toward negative infinity */
20 FP_RP=3 /* round toward positive infinity */
21 } fp_rnd;
22
23 #endif /* _M68K_IEEEFP_H_ */
24