1 /* $NetBSD: ieeefp.h,v 1.3 2013/04/23 05:42:23 matt Exp $ */
4 * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
11 #include <sys/featuretest.h>
13 #if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
17 #if !defined(_ISOC99_SOURCE)
19 /* Exception type (used by fpsetmask() et al.) */
21 typedef int fp_except
;
23 /* Bit defines for fp_except */
25 #define FP_X_INV FE_INVALID /* invalid operation exception */
26 #define FP_X_DZ FE_DIVBYZERO /* divide-by-zero exception */
27 #define FP_X_OFL FE_OVERFLOW /* overflow exception */
28 #define FP_X_UFL FE_UNDERFLOW /* underflow exception */
29 #define FP_X_IMP FE_INEXACT /* imprecise (prec. loss; "inexact") */
34 FP_RN
=FE_TONEAREST
, /* round to nearest representable number */
35 FP_RP
=FE_UPWARD
, /* round toward positive infinity */
36 FP_RM
=FE_DOWNWARD
, /* round toward negative infinity */
37 FP_RZ
=FE_TOWARDZERO
/* round to zero (truncate) */
40 #endif /* !_ISOC99_SOURCE */
42 #endif /* _NETBSD_SOURCE || _ISOC99_SOURCE */
44 #endif /* _ARM_IEEEFP_H_ */