Date: Sun, 30 May 2021 02:54:03 GMT From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2b9a828c9949 - main - Set default SPE FP environment Message-ID: <202105300254.14U2s3et010338@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=2b9a828c99499d3ca574575afd5d01b1539a2c66 commit 2b9a828c99499d3ca574575afd5d01b1539a2c66 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2021-05-30 02:53:35 +0000 Commit: Justin Hibbits <jhibbits@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105300254.14U2s3et010338>