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