git: 2b9a828c9949 - main - Set default SPE FP environment
Justin Hibbits
jhibbits at FreeBSD.org
Sun May 30 02:54:04 UTC 2021
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=2b9a828c99499d3ca574575afd5d01b1539a2c66
commit 2b9a828c99499d3ca574575afd5d01b1539a2c66
Author: Justin Hibbits <jhibbits at FreeBSD.org>
AuthorDate: 2021-05-30 02:53:35 +0000
Commit: Justin Hibbits <jhibbits at FreeBSD.org>
CommitDate: 2021-05-30 02:53:35 +0000
Set default SPE FP environment
---
lib/msun/powerpc/fenv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/msun/powerpc/fenv.c b/lib/msun/powerpc/fenv.c
index 7f7d98515995..1a5644547958 100644
--- a/lib/msun/powerpc/fenv.c
+++ b/lib/msun/powerpc/fenv.c
@@ -39,7 +39,11 @@
#error "This file must be compiled with C99 'inline' semantics"
#endif
+#ifdef __SPE__
+const fenv_t __fe_dfl_env = SPEFSCR_DFLT;
+#else
const fenv_t __fe_dfl_env = 0x00000000;
+#endif
extern inline int feclearexcept(int __excepts);
extern inline int fegetexceptflag(fexcept_t *__flagp, int __excepts);
More information about the dev-commits-src-main
mailing list