Home | History | Annotate | Line # | Download | only in include
ieeefp.h revision 1.4
      1 /*	$NetBSD: ieeefp.h,v 1.4 2004/08/28 21:31:07 thorpej Exp $	*/
      2 
      3 /*
      4  * Written by J.T. Conklin, Apr 6, 1995
      5  * Modified by Jason R. Thorpe, June 22, 2003
      6  * Public domain.
      7  */
      8 
      9 #ifndef _M68K_IEEEFP_H_
     10 #define _M68K_IEEEFP_H_
     11 
     12 typedef int fp_except;
     13 #define FP_X_IMP	0x01	/* imprecise (loss of precision) */
     14 #define FP_X_DZ		0x02	/* divide-by-zero exception */
     15 #define FP_X_UFL	0x04	/* underflow exception */
     16 #define FP_X_OFL	0x08	/* overflow exception */
     17 #define FP_X_INV	0x10	/* invalid operation exception */
     18 
     19 typedef enum {
     20     FP_RN=0,			/* round to nearest representable number */
     21     FP_RZ=1,			/* round to zero (truncate) */
     22     FP_RM=2,			/* round toward negative infinity */
     23     FP_RP=3			/* round toward positive infinity */
     24 } fp_rnd;
     25 
     26 typedef enum {
     27     FP_PE=0,			/* extended-precision (64-bit) */
     28     FP_PS=1,			/* single-precision (24-bit) */
     29     FP_PD=2			/* double-precision (53-bit) */
     30 } fp_prec;
     31 
     32 #define	__HAVE_FP_PREC
     33 
     34 #endif /* _M68K_IEEEFP_H_ */
     35