Displaying 2 results from an estimated 2 matches for "fesetexcept".
2020 Jan 09
2
[cfe-dev] Calling function from non-default floating-point environment
...ast won’t change the control modes.
It’s possible that the intermediate positions of “may read the FP
environment but will not change the status flags” and “may set
status flags, but will not read control modes” may be useful. (I
think the latter can only happen with calls to intrinsics like
`fesetexcept`, but, well, those functions exist, and optimizing around
them might matter.)
Anyway, we’ll want to do that at the IR level at least, and we’ll
probably want to do it at the user level eventually. But it’ll be
awhile before we get there. And these attributes would be quite
different from the...
2020 Jan 07
3
Calling function from non-default floating-point environment
Hi all,
Implementation of #pragma STDC FENV_ACCESS raises a problem: what to do if
a function is called inside a region where FP environment differs from the
default? If the function expects default FP mode it may work incorrectly in
such case.
The C2x standard draft (
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2454.pdf) states (7.6p4):
Certain programming conventions support the intended