10.12.10 fesetexceptflag
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/fesetexceptflag.html
Gnulib module: fenv-exceptions-state-c99
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
FreeBSD 5.2.1, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, Solaris 9, Cygwin 1.7.7, MSVC 9, Android 4.4.
- This function triggers floating-point exception traps although it shouldn’t, on
glibc 2.37/i386, glibc 2.37/x86_64,
glibc 2.37/powerpc,
musl libc, Mac OS X 10.5, Minix 3.3, mingw, Haiku.
- This function clears too many floating-point exception flags on
glibc 2.37/alpha.
- This function loses the
FE_INVALID
flag on
FreeBSD 14.0/powerpc64,
NetBSD 9.3/powerpc.
- This function is also buggy on
AIX 7.3.1.
Portability problems not fixed by Gnulib: