* add p cc
[mascara-docs.git] / compilers / pcc / pcc-libs-1.0.0 / libsoftfloat / arch / powerpc / ieeefp.h
blob2e36bd0a6e3ca806f5d7b1b9603b93524f0f0db5
1 /*
2 * Written by J.T. Conklin, Apr 6, 1995
3 * Public domain.
4 */
6 #ifndef _POWERPC_IEEEFP_H_
7 #define _POWERPC_IEEEFP_H_
9 typedef int fp_except;
10 #define FP_X_IMP 0x01 /* imprecise (loss of precision) */
11 #define FP_X_DZ 0x02 /* divide-by-zero exception */
12 #define FP_X_UFL 0x04 /* underflow exception */
13 #define FP_X_OFL 0x08 /* overflow exception */
14 #define FP_X_INV 0x10 /* invalid operation exception */
16 typedef enum {
17 FP_RN=0, /* round to nearest representable number */
18 FP_RZ=1, /* round to zero (truncate) */
19 FP_RP=2, /* round toward positive infinity */
20 FP_RM=3 /* round toward negative infinity */
21 } fp_rnd;
23 #endif /* _POWERPC_IEEEFP_H_ */