public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error
@ 2020-11-30 10:33 zimmerma+gcc at loria dot fr
  2020-12-01 23:51 ` [Bug math/26983] " woodard at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2020-11-30 10:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

            Bug ID: 26983
           Summary: [x86_64] x86_64 tgamma has too large ULP error
           Product: glibc
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: zimmerma+gcc at loria dot fr
                CC: joseph at codesourcery dot com
  Target Milestone: ---

$ cat test2.c
#include <stdio.h>
#include <math.h>

int main()
{
  double x = -0x1.62c4d519e8677p+3, y;
  y = tgamma (x);
  printf ("x=%a y=%a\n", x, y);
}

$ gcc -fno-builtin test2.c -lm
$ ./a.out
x=-0x1.62c4d519e8677p+3 y=0x1.fd63c481c16c9p-23

The correctly rounded result is 0x1.fd63c481c16bfp-23, which is 10 ulps apart.
This is larger than the maximum accepted error (9 ulps).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug math/26983] [x86_64] x86_64 tgamma has too large ULP error
  2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
@ 2020-12-01 23:51 ` woodard at redhat dot com
  2020-12-07 10:32 ` zimmerma+gcc at loria dot fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: woodard at redhat dot com @ 2020-12-01 23:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

Ben Woodard <woodard at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |woodard at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug math/26983] [x86_64] x86_64 tgamma has too large ULP error
  2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
  2020-12-01 23:51 ` [Bug math/26983] " woodard at redhat dot com
@ 2020-12-07 10:32 ` zimmerma+gcc at loria dot fr
  2021-04-07 11:33 ` zimmerma+gcc at loria dot fr
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2020-12-07 10:32 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

--- Comment #1 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
I also get an error of 10.1539 ulps for the following binary128 input with
glibc 2.32:

x=-0xf.01a777b2a80518082d6eae96ef98p+0

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug math/26983] [x86_64] x86_64 tgamma has too large ULP error
  2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
  2020-12-01 23:51 ` [Bug math/26983] " woodard at redhat dot com
  2020-12-07 10:32 ` zimmerma+gcc at loria dot fr
@ 2021-04-07 11:33 ` zimmerma+gcc at loria dot fr
  2021-04-07 11:34 ` zimmerma+gcc at loria dot fr
  2021-04-07 11:43 ` zimmerma+gcc at loria dot fr
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2021-04-07 11:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

--- Comment #2 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
and an error of 9.55 ulps (rounding to nearest) for the following long double
input (thus 10 ulps from the correctly rounded value):

x=-0xb.161d242d4b9282ap+0l

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug math/26983] [x86_64] x86_64 tgamma has too large ULP error
  2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
                   ` (2 preceding siblings ...)
  2021-04-07 11:33 ` zimmerma+gcc at loria dot fr
@ 2021-04-07 11:34 ` zimmerma+gcc at loria dot fr
  2021-04-07 11:43 ` zimmerma+gcc at loria dot fr
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2021-04-07 11:34 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

--- Comment #3 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
the binary64 case is fixed by commit 43576de (at least for all known cases with
errors larger than 9 ulps)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug math/26983] [x86_64] x86_64 tgamma has too large ULP error
  2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
                   ` (3 preceding siblings ...)
  2021-04-07 11:34 ` zimmerma+gcc at loria dot fr
@ 2021-04-07 11:43 ` zimmerma+gcc at loria dot fr
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2021-04-07 11:43 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26983

Paul Zimmermann <zimmerma+gcc at loria dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |2.34

--- Comment #4 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
cases for ldbl-96 and float128 have been moved to #27707

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-04-07 11:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 10:33 [Bug math/26983] New: [x86_64] x86_64 tgamma has too large ULP error zimmerma+gcc at loria dot fr
2020-12-01 23:51 ` [Bug math/26983] " woodard at redhat dot com
2020-12-07 10:32 ` zimmerma+gcc at loria dot fr
2021-04-07 11:33 ` zimmerma+gcc at loria dot fr
2021-04-07 11:34 ` zimmerma+gcc at loria dot fr
2021-04-07 11:43 ` zimmerma+gcc at loria dot fr

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