summaryrefslogtreecommitdiffstats
path: root/include/ieeefp.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-12-23 11:50:52 +0000
committerdfr <dfr@FreeBSD.org>1998-12-23 11:50:52 +0000
commit0d57a81a8be9e9b63084d2b57eaadc0e1d57f2b7 (patch)
tree1138e6074d535cddfb8dae7e5fd33e3a8508ef1b /include/ieeefp.h
parentcb8b246a394601b9e5228fd27edfb6682da216ab (diff)
downloadFreeBSD-src-0d57a81a8be9e9b63084d2b57eaadc0e1d57f2b7.zip
FreeBSD-src-0d57a81a8be9e9b63084d2b57eaadc0e1d57f2b7.tar.gz
Implement fpsetmask() and other fp*() functions. Programs should use
#include <ieeefp.h> to access these functions instead of the i386 specific #include <machine/floatingpoint.h> Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Diffstat (limited to 'include/ieeefp.h')
-rw-r--r--include/ieeefp.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/ieeefp.h b/include/ieeefp.h
new file mode 100644
index 0000000..83db9a5
--- /dev/null
+++ b/include/ieeefp.h
@@ -0,0 +1,25 @@
+/* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */
+
+/*
+ * Written by J.T. Conklin, Apr 6, 1995
+ * Public domain.
+ */
+
+#ifndef _IEEEFP_H_
+#define _IEEEFP_H_
+
+#include <sys/cdefs.h>
+#include <machine/ieeefp.h>
+
+#ifdef i386
+#include <machine/floatingpoint.h>
+#else
+extern fp_rnd fpgetround __P((void));
+extern fp_rnd fpsetround __P((fp_rnd));
+extern fp_except fpgetmask __P((void));
+extern fp_except fpsetmask __P((fp_except));
+extern fp_except fpgetsticky __P((void));
+extern fp_except fpsetsticky __P((fp_except));
+#endif /* i386 */
+
+#endif /* _IEEEFP_H_ */
OpenPOWER on IntegriCloud