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