git: a8079d40ae7f - main - sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Oct 2025 13:42:14 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=a8079d40ae7f3cee17c94e61e43c24780a64a010
commit a8079d40ae7f3cee17c94e61e43c24780a64a010
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-10-17 09:30:09 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-22 13:41:54 +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
---
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_ */