This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/3427] feholdexcept does not clear status flags
- From: "kreckel at ginac dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 May 2007 20:27:36 -0000
- Subject: [Bug math/3427] feholdexcept does not clear status flags
- References: <20061026110459.3427.kreckel@ginac.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From kreckel at ginac dot de 2007-05-12 21:27 -------
Subject: Re: feholdexcept does not clear status flags
Jakub,
jakub at redhat dot com wrote:
> ------- Additional Comments From jakub at redhat dot com 2007-05-10 12:50 -------
> This is fixed in CVS for some time already.
I just read your patch at
<http://sources.redhat.com/ml/libc-hacker/2007-03/msg00032.html> and
re-read the Intel instruction set reference. And now the patch appears
to be overly complex to me. Regarding the fnstenv insn used, the Intel
instruction set reference says: "Store FPU environment to [...] m28byte
without checking for pending unmasked floating-point exceptions. Then
mask all floating-point exceptions." Note the last sentence. The part
after the comment "Now set all exceptions to non-stop" is unnecessary.
The part "And clear all exceptions" is more easily done with the fnclex
instruction. This way, the temp fenv_t is not needed at all.
Cheers
-richy.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3427
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.