xref: /netbsd-src/include/ieeefp.h (revision be06c07b98e0ffb1b6b7ae649f1ea29928a294cc)
1*be06c07bSmrg /*	$NetBSD: ieeefp.h,v 1.9 2011/03/27 05:13:15 mrg Exp $	*/
23fe138c1Sperry 
3a9ae458fSjtc /*
4a9ae458fSjtc  * Written by J.T. Conklin, Apr 6, 1995
5a9ae458fSjtc  * Public domain.
6a9ae458fSjtc  */
7a9ae458fSjtc 
8a9ae458fSjtc #ifndef _IEEEFP_H_
9a9ae458fSjtc #define _IEEEFP_H_
10a9ae458fSjtc 
11a9ae458fSjtc #include <sys/cdefs.h>
12e957423aSmycroft #include <machine/ieeefp.h>
13a9ae458fSjtc 
148e726678Schristos __BEGIN_DECLS
152587e6e4Schristos typedef fp_rnd fp_rnd_t;
16*be06c07bSmrg #ifdef _X86_IEEEFP_H_	/* XXX */
172587e6e4Schristos typedef fp_prec fp_prec_t;
18*be06c07bSmrg #endif
192587e6e4Schristos typedef fp_except fp_except_t;
202587e6e4Schristos 
212587e6e4Schristos fp_rnd_t	fpgetround(void);
222587e6e4Schristos fp_rnd_t	fpsetround(fp_rnd_t);
232587e6e4Schristos #ifdef _X86_IEEEFP_H_	/* XXX */
242587e6e4Schristos fp_prec_t	fpgetprec(void);
252587e6e4Schristos fp_prec_t	fpsetprec(fp_prec_t);
262587e6e4Schristos #endif
272587e6e4Schristos fp_except_t	fpgetmask(void);
282587e6e4Schristos fp_except_t	fpsetmask(fp_except_t);
292587e6e4Schristos fp_except_t	fpgetsticky(void);
302587e6e4Schristos fp_except_t	fpsetsticky(fp_except_t);
312587e6e4Schristos fp_except_t	fpresetsticky(fp_except_t);
328e726678Schristos __END_DECLS
33a9ae458fSjtc 
34a9ae458fSjtc #endif /* _IEEEFP_H_ */
35