git: af39e511ee15 - stable/15 - sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Oct 2025 11:15:55 UTC
The branch stable/15 has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=af39e511ee158edc469f2f73aaa5bc5af872c747
commit af39e511ee158edc469f2f73aaa5bc5af872c747
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-10-17 09:30:09 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-29 11:15:21 +0000
sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
We have provided implementations for hard float of these for
a while now. Add them to the header to make things official.
This is required for a bunch of legacy programs in ports.
Approved by: markj (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D53156
(cherry picked from commit a8079d40ae7f3cee17c94e61e43c24780a64a010)
---
sys/arm/include/ieeefp.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sys/arm/include/ieeefp.h b/sys/arm/include/ieeefp.h
index 57dd058b8a95..57719b883d58 100644
--- a/sys/arm/include/ieeefp.h
+++ b/sys/arm/include/ieeefp.h
@@ -49,4 +49,14 @@ typedef enum {
#define fp_except_t int
+/* Augment the userland declarations. */
+__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);
+extern fp_except_t fpsetsticky(fp_except_t);
+__END_DECLS
+
#endif /* _MACHINE_IEEEFP_H_ */