| 1 | /*	$NetBSD: ieeefp.h,v 1.9 2011/03/27 05:13:15 mrg Exp $	*/ |
| 2 | |
| 3 | /* |
| 4 | * Written by J.T. Conklin, Apr 6, 1995 |
| 5 | * Public domain. |
| 6 | */ |
| 7 | |
| 8 | #ifndef _IEEEFP_H_ |
| 9 | #define _IEEEFP_H_ |
| 10 | |
| 11 | #include <sys/cdefs.h> |
| 12 | #include <machine/ieeefp.h> |
| 13 | |
| 14 | __BEGIN_DECLS |
| 15 | typedef fp_rnd fp_rnd_t; |
| 16 | #ifdef _X86_IEEEFP_H_	/* XXX */ |
| 17 | typedef fp_prec fp_prec_t; |
| 18 | #endif |
| 19 | typedef fp_except fp_except_t; |
| 20 | |
| 21 | fp_rnd_t	fpgetround(void); |
| 22 | fp_rnd_t	fpsetround(fp_rnd_t); |
| 23 | #ifdef _X86_IEEEFP_H_	/* XXX */ |
| 24 | fp_prec_t	fpgetprec(void); |
| 25 | fp_prec_t	fpsetprec(fp_prec_t); |
| 26 | #endif |
| 27 | fp_except_t	fpgetmask(void); |
| 28 | fp_except_t	fpsetmask(fp_except_t); |
| 29 | fp_except_t	fpgetsticky(void); |
| 30 | fp_except_t	fpsetsticky(fp_except_t); |
| 31 | fp_except_t	fpresetsticky(fp_except_t); |
| 32 | __END_DECLS |
| 33 | |
| 34 | #endif /* _IEEEFP_H_ */ |