diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:02:12 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:02:12 +0000 |
commit | 77e4c85748817196fb00ee12fcd1b0698b7a2106 (patch) | |
tree | ca91a942a78e0844d68373cabde93293480cc8dc /sys/arch | |
parent | ca817738feb3dbccb047a79a8bba9d9ef8d35bef (diff) |
Match the SH4 FPSCR bits.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sh/include/ieeefp.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/arch/sh/include/ieeefp.h b/sys/arch/sh/include/ieeefp.h index 141048038ad..868db36647e 100644 --- a/sys/arch/sh/include/ieeefp.h +++ b/sys/arch/sh/include/ieeefp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieeefp.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */ +/* $OpenBSD: ieeefp.h,v 1.2 2006/10/10 22:02:11 miod Exp $ */ /* $NetBSD: ieeefp.h,v 1.3 2002/04/28 17:10:34 uch Exp $ */ /* @@ -10,18 +10,19 @@ #define _SH_IEEEFP_H_ typedef int fp_except; -#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) */ +#define FP_X_INV 0x10 /* invalid operation exception */ +#define FP_X_DNML 0x20 /* denormalization exception */ +#define FP_X_DZ 0x08 /* divide-by-zero exception */ +#define FP_X_OFL 0x04 /* overflow exception */ +#define FP_X_UFL 0x02 /* underflow exception */ +#define FP_X_IMP 0x01 /* imprecise (loss of precision) */ typedef enum { FP_RN=0, /* round to nearest representable number */ - FP_RM=1, /* round toward negative infinity */ + FP_RZ=1 /* round to zero (truncate) */ + /* the following two are not implemented on SH4{,A} */ FP_RP=2, /* round toward positive infinity */ - FP_RZ=3 /* round to zero (truncate) */ + FP_RM=3 /* round toward negative infinity */ } fp_rnd; #endif /* !_SH_IEEEFP_H_ */ |