diff options
| author | jtc <jtc@NetBSD.org> | 1995-04-11 18:20:46 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1995-04-11 18:20:46 +0000 |
| commit | 32a6db8a7683deae3f09c185abb49c5fa7eeaee2 (patch) | |
| tree | 9de0da07a1d678131b8c58edd1feac049f09b2aa /sys/arch/mips/include | |
| parent | 600a989fb6c2b131b320c8ccdb86cb506b9bf7bc (diff) | |
Mips specific portions of ieeefp.h (fp_rnd, fp_except, constants, etc.).
Diffstat (limited to 'sys/arch/mips/include')
| -rw-r--r-- | sys/arch/mips/include/ieeefp.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/arch/mips/include/ieeefp.h b/sys/arch/mips/include/ieeefp.h new file mode 100644 index 00000000000..f69318d9d0c --- /dev/null +++ b/sys/arch/mips/include/ieeefp.h @@ -0,0 +1,23 @@ +/* + * Written by J.T. Conklin, Apr 11, 1995 + * Public domain. + */ + +#ifndef _PMAX_IEEEFP_H_ +#define _PMAX_IEEEFP_H_ + +typedef int fp_except; +#define FP_X_IMP 0x01 /* imprecise (loss of precision) */ +#define FP_X_UFL 0x02 /* underflow exception */ +#define FP_X_OFL 0x04 /* overflow exception */ +#define FP_X_DZ 0x08 /* divide-by-zero exception */ +#define FP_X_INV 0x10 /* invalid operation exception */ + +typedef enum { + FP_RN=0, /* round to nearest representable number */ + FP_RZ=1, /* round to zero (truncate) */ + FP_RP=2, /* round toward positive infinity */ + FP_RM=3 /* round toward negative infinity */ +} fp_rnd; + +#endif /* _PMAX_IEEEFP_H_ */ |
