public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/3427] New: feholdexcept does not clear status flags
@ 2006-10-26 11:05 kreckel at ginac dot de
  2007-01-05 22:03 ` [Bug math/3427] " kreckel at ginac dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kreckel at ginac dot de @ 2006-10-26 11:05 UTC (permalink / raw)
  To: glibc-bugs

At least on the i386 and x86_64 architectures, calling feholdexcept fails to
clear the FPU's exception status flags. (Reading the sources, it appears like on
alpha and powerpc, the exception status flags are cleared.)

According to ISO/IEC 9899:1999 [7.6.4.2]: "The feholdexcept function saves the
current floating-point environment in the object pointed to by envp, clears the
floating-point status flags, and then installs a non-stop (continue on
floating-point exceptions) mode, if available, for all floating-point exceptions."

The Linux manpage also claims that feholdexept clears all exception flags.

-- 
           Summary: feholdexcept does not clear status flags
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: kreckel at ginac dot de
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i586-suse-linux


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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-12 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-26 11:05 [Bug math/3427] New: feholdexcept does not clear status flags kreckel at ginac dot de
2007-01-05 22:03 ` [Bug math/3427] " kreckel at ginac dot de
2007-01-05 22:05 ` kreckel at ginac dot de
2007-01-06  0:01 ` kreckel at ginac dot de
2007-03-22 14:51 ` jakub at redhat dot com
2007-05-10  6:30 ` cvs-commit at gcc dot gnu dot org
2007-05-10 11:50 ` jakub at redhat dot com
2007-05-12 20:27 ` kreckel at ginac dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).