1 /* $OpenBSD: ieeefp.h,v 1.2 1999/01/27 04:46:05 imp Exp $ */
4 * Written by J.T. Conklin, Apr 11, 1995
7 * JNPR: ieeefp.h,v 1.1 2006/08/07 05:38:57 katta
11 #ifndef _MACHINE_IEEEFP_H_
12 #define _MACHINE_IEEEFP_H_
14 /* Deprecated historical FPU control interface */
16 typedef int fp_except;
17 typedef int fp_except_t;
19 #define FP_X_IMP 0x01 /* imprecise (loss of precision) */
20 #define FP_X_UFL 0x02 /* underflow exception */
21 #define FP_X_OFL 0x04 /* overflow exception */
22 #define FP_X_DZ 0x08 /* divide-by-zero exception */
23 #define FP_X_INV 0x10 /* invalid operation exception */
26 FP_RN=0, /* round to nearest representable number */
27 FP_RZ=1, /* round to zero (truncate) */
28 FP_RP=2, /* round toward positive infinity */
29 FP_RM=3 /* round toward negative infinity */
32 typedef fp_rnd fp_rnd_t;
34 #endif /* !_MACHINE_IEEEFP_H_ */