This is the mail archive of the 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] New: feholdexcept does not clear status flags

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 []: "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

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