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