2002-04-28 21:10:32 +04:00
|
|
|
/* $NetBSD: ieeefp.h,v 1.3 2002/04/28 17:10:34 uch Exp $ */
|
1999-09-13 14:30:21 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Written by J.T. Conklin, Apr 6, 1995
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SH3_IEEEFP_H_
|
2002-04-28 21:10:32 +04:00
|
|
|
#define _SH3_IEEEFP_H_
|
1999-09-13 14:30:21 +04:00
|
|
|
|
|
|
|
typedef int fp_except;
|
2002-04-28 21:10:32 +04:00
|
|
|
#define FP_X_INV 0x01 /* invalid operation exception */
|
|
|
|
#define FP_X_DNML 0x02 /* denormalization exception */
|
|
|
|
#define FP_X_DZ 0x04 /* divide-by-zero exception */
|
|
|
|
#define FP_X_OFL 0x08 /* overflow exception */
|
|
|
|
#define FP_X_UFL 0x10 /* underflow exception */
|
|
|
|
#define FP_X_IMP 0x20 /* imprecise (loss of precision) */
|
1999-09-13 14:30:21 +04:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
FP_RN=0, /* round to nearest representable number */
|
|
|
|
FP_RM=1, /* round toward negative infinity */
|
|
|
|
FP_RP=2, /* round toward positive infinity */
|
|
|
|
FP_RZ=3 /* round to zero (truncate) */
|
|
|
|
} fp_rnd;
|
|
|
|
|
2002-03-17 20:55:22 +03:00
|
|
|
#endif /* !_SH3_IEEEFP_H_ */
|