2011-03-27 09:13:15 +04:00
|
|
|
/* $NetBSD: ieeefp.h,v 1.9 2011/03/27 05:13:15 mrg Exp $ */
|
1998-01-09 11:03:16 +03:00
|
|
|
|
1995-04-07 04:59:09 +04:00
|
|
|
/*
|
|
|
|
* Written by J.T. Conklin, Apr 6, 1995
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IEEEFP_H_
|
|
|
|
#define _IEEEFP_H_
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
1995-04-10 01:31:58 +04:00
|
|
|
#include <machine/ieeefp.h>
|
1995-04-07 04:59:09 +04:00
|
|
|
|
2005-11-18 23:02:59 +03:00
|
|
|
__BEGIN_DECLS
|
2011-03-26 22:51:41 +03:00
|
|
|
typedef fp_rnd fp_rnd_t;
|
2011-03-27 09:13:15 +04:00
|
|
|
#ifdef _X86_IEEEFP_H_ /* XXX */
|
2011-03-26 22:51:41 +03:00
|
|
|
typedef fp_prec fp_prec_t;
|
2011-03-27 09:13:15 +04:00
|
|
|
#endif
|
2011-03-26 22:51:41 +03:00
|
|
|
typedef fp_except fp_except_t;
|
|
|
|
|
|
|
|
fp_rnd_t fpgetround(void);
|
|
|
|
fp_rnd_t fpsetround(fp_rnd_t);
|
|
|
|
#ifdef _X86_IEEEFP_H_ /* XXX */
|
|
|
|
fp_prec_t fpgetprec(void);
|
|
|
|
fp_prec_t fpsetprec(fp_prec_t);
|
|
|
|
#endif
|
|
|
|
fp_except_t fpgetmask(void);
|
|
|
|
fp_except_t fpsetmask(fp_except_t);
|
|
|
|
fp_except_t fpgetsticky(void);
|
|
|
|
fp_except_t fpsetsticky(fp_except_t);
|
|
|
|
fp_except_t fpresetsticky(fp_except_t);
|
2005-11-18 23:02:59 +03:00
|
|
|
__END_DECLS
|
1995-04-07 04:59:09 +04:00
|
|
|
|
|
|
|
#endif /* _IEEEFP_H_ */
|