summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/ieeefp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sparc64/include/ieeefp.h')
-rw-r--r--sys/sparc64/include/ieeefp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/sparc64/include/ieeefp.h b/sys/sparc64/include/ieeefp.h
index 1126494..bb07737 100644
--- a/sys/sparc64/include/ieeefp.h
+++ b/sys/sparc64/include/ieeefp.h
@@ -7,6 +7,8 @@
#ifndef _MACHINE_IEEEFP_H_
#define _MACHINE_IEEEFP_H_
+/* Deprecated FPU control interface */
+
#include <machine/fsr.h>
typedef int fp_except_t;
@@ -23,4 +25,13 @@ typedef enum {
FP_RM = FSR_RD_NINF /* round toward negative infinity */
} fp_rnd_t;
+__BEGIN_DECLS
+extern fp_rnd_t fpgetround(void);
+extern fp_rnd_t fpsetround(fp_rnd_t);
+extern fp_except_t fpgetmask(void);
+extern fp_except_t fpsetmask(fp_except_t);
+extern fp_except_t fpgetsticky(void);
+__END_DECLS
+
+
#endif /* _MACHINE_IEEEFP_H_ */
OpenPOWER on IntegriCloud