public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/2547] New: Incorrect return from float nearbyint (0X1.3041C6P+21)
@ 2006-04-12 22:17 hjl at lucon dot org
  2006-04-13 17:07 ` [Bug math/2547] " hjl at lucon dot org
  2006-04-23 17:51 ` drepper at redhat dot com
  0 siblings, 2 replies; 4+ messages in thread
From: hjl at lucon dot org @ 2006-04-12 22:17 UTC (permalink / raw)
  To: glibc-bugs

Failure: Test: nearbyint (0X1.3041C6P+21) == 0X1.3041C8P+21
Result:
 is:          2.49247200000000000000e+06   0x1.3041c000000000000000p+21
 should be:   2.49247300000000000000e+06   0x1.3041c800000000000000p+21
 difference:  1.00000000000000000000e+00   0x1.00000000000000000000p+0
 ulp       :  4.0000
 max.ulp   :  0.0000

-- 
           Summary: Incorrect return from float nearbyint (0X1.3041C6P+21)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: hjl at lucon dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2547

------- 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] 4+ messages in thread

* [Bug math/2547] Incorrect return from float nearbyint (0X1.3041C6P+21)
  2006-04-12 22:17 [Bug math/2547] New: Incorrect return from float nearbyint (0X1.3041C6P+21) hjl at lucon dot org
@ 2006-04-13 17:07 ` hjl at lucon dot org
  2006-04-23 17:51 ` drepper at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: hjl at lucon dot org @ 2006-04-13 17:07 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From hjl at lucon dot org  2006-04-13 17:07 -------
The problem is:

       The nearbyint() functions round their argument to an integer  value  in
       floating point format, using the current rounding direction and without
       raising the inexact exception.

But ieee754/flt-32/s_nearbyintf.c doesn't check the current rounding direction
at all.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2547

------- 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] 4+ messages in thread

* [Bug math/2547] Incorrect return from float nearbyint (0X1.3041C6P+21)
  2006-04-12 22:17 [Bug math/2547] New: Incorrect return from float nearbyint (0X1.3041C6P+21) hjl at lucon dot org
  2006-04-13 17:07 ` [Bug math/2547] " hjl at lucon dot org
@ 2006-04-23 17:51 ` drepper at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2006-04-23 17:51 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-23 17:51 -------
Suspended until somebody comes up with a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drepper at redhat dot com
             Status|NEW                         |SUSPENDED


http://sourceware.org/bugzilla/show_bug.cgi?id=2547

------- 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] 4+ messages in thread

* [Bug math/2547] Incorrect return from float nearbyint (0X1.3041C6P+21)
       [not found] <bug-2547-131@http.sourceware.org/bugzilla/>
@ 2012-02-22 13:16 ` jsm28 at gcc dot gnu.org
  0 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-22 13:16 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=2547

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-22 13:10:26 UTC ---
Fixed.

commit 6cbeae4719aeb3edb6143fe5dd6d2a5ab45c0248
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Feb 22 13:03:40 2012 +0000

    Fix nearbyintf rounding.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-02-22 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-12 22:17 [Bug math/2547] New: Incorrect return from float nearbyint (0X1.3041C6P+21) hjl at lucon dot org
2006-04-13 17:07 ` [Bug math/2547] " hjl at lucon dot org
2006-04-23 17:51 ` drepper at redhat dot com
     [not found] <bug-2547-131@http.sourceware.org/bugzilla/>
2012-02-22 13:16 ` jsm28 at gcc dot gnu.org

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