ieeefp.h revision 1.2
1/* 2 * Written by J.T. Conklin, Apr 6, 1995 3 * Public domain. 4 */ 5 6#ifndef _SPARC_IEEEFP_H_ 7#define _SPARC_IEEEFP_H_ 8 9typedef int fp_except; 10#define FP_X_IMP 0x01 /* imprecise (loss of precision) */ 11#define FP_X_DZ 0x02 /* divide-by-zero exception */ 12#define FP_X_UFL 0x04 /* underflow exception */ 13#define FP_X_OFL 0x08 /* overflow exception */ 14#define FP_X_INV 0x10 /* invalid operation exception */ 15 16typedef 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 /* _SPARC_IEEEFP_H_ */ 24