Module Name: src
Committed By: christos
Date: Sat Mar 26 19:52:00 UTC 2011
Modified Files:
src/include: ieeefp.h
Log Message:
add fpgetprec/fpsetprec
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/include/ieeefp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/ieeefp.h
diff -u src/include/ieeefp.h:1.7 src/include/ieeefp.h:1.8
--- src/include/ieeefp.h:1.7 Fri Nov 18 15:02:59 2005
+++ src/include/ieeefp.h Sat Mar 26 15:51:59 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.7 2005/11/18 20:02:59 christos Exp $ */
+/* $NetBSD: ieeefp.h,v 1.8 2011/03/26 19:51:59 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -12,12 +12,21 @@
#include <machine/ieeefp.h>
__BEGIN_DECLS
-fp_rnd fpgetround(void);
-fp_rnd fpsetround(fp_rnd);
-fp_except fpgetmask(void);
-fp_except fpsetmask(fp_except);
-fp_except fpgetsticky(void);
-fp_except fpsetsticky(fp_except);
+typedef fp_rnd fp_rnd_t;
+typedef fp_prec fp_prec_t;
+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);
__END_DECLS
#endif /* _IEEEFP_H_ */