aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorRadek Bartoň <radek.barton@microsoft.com>2025-07-03 12:02:03 +0200
committerCorinna Vinschen <corinna@vinschen.de>2025-07-21 12:00:01 +0200
commite29e1cf75e9209bef7394402f817a050e101281d (patch)
tree6f394f3c0d80911ee6a1b35122c3b9b5c086e82c /newlib/libc
parenta0634931f181e9b46818f6fda15d6c28583dccbb (diff)
downloadnewlib-e29e1cf75e9209bef7394402f817a050e101281d.zip
newlib-e29e1cf75e9209bef7394402f817a050e101281d.tar.gz
newlib-e29e1cf75e9209bef7394402f817a050e101281d.tar.bz2
newlib: add dummy implementations of fe{get,set}prec for Aarch64 Cygwin
This patch introduces dummy implementation of fegetprec and fsetprec for Cygwin build as those symbols are being exported by cygwin1.dll and AArch64 do not support changing floating point precision at runtime. Signed-off-by: Radek Bartoň <radek.barton@microsoft.com>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/machine/aarch64/sys/fenv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/libc/machine/aarch64/sys/fenv.h b/newlib/libc/machine/aarch64/sys/fenv.h
index 1f97791..369cc48 100644
--- a/newlib/libc/machine/aarch64/sys/fenv.h
+++ b/newlib/libc/machine/aarch64/sys/fenv.h
@@ -123,6 +123,21 @@ fegetexcept(void)
#endif /* __BSD_VISIBLE */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __CYGWIN__
+
+#if __MISC_VISIBLE
+int fegetprec (void);
+int fesetprec (int __prec);
+#endif
+
+#endif /* __CYGWIN__ */
+#ifdef __cplusplus
+}
+#endif
#endif /* !_FENV_H_ */