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