This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/3427] feholdexcept does not clear status flags


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]