ieeefp.h revision 66458
1/* $FreeBSD: head/sys/ia64/include/ieeefp.h 66458 2000-09-29 13:46:07Z dfr $ */
2/* From: NetBSD: ieeefp.h,v 1.2 1997/04/06 08:47:28 cgd Exp */
3
4/*
5 * Written by J.T. Conklin, Apr 28, 1995
6 * Public domain.
7 */
8
9#ifndef _ALPHA_IEEEFP_H_
10#define _ALPHA_IEEEFP_H_
11
12typedef int fp_except_t;
13#define	FP_X_INV	(1LL << 1)	/* invalid operation exception */
14#define	FP_X_DZ		(1LL << 2)	/* divide-by-zero exception */
15#define	FP_X_OFL	(1LL << 3)	/* overflow exception */
16#define	FP_X_UFL	(1LL << 4)	/* underflow exception */
17#define	FP_X_IMP	(1LL << 5)	/* imprecise(inexact) exception */
18#if 0
19#define	FP_X_IOV	(1LL << 6)	/* integer overflow XXX? */
20#endif
21
22typedef enum {
23    FP_RZ=0,			/* round to zero (truncate) */
24    FP_RM=1,			/* round toward negative infinity */
25    FP_RN=2,			/* round to nearest representable number */
26    FP_RP=3			/* round toward positive infinity */
27} fp_rnd_t;
28
29#endif /* _ALPHA_IEEEFP_H_ */
30