[Bug math/26108] New: exp10() has problems with <tgmath.h>

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug math/26108] New: exp10() has problems with <tgmath.h>

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26108

            Bug ID: 26108
           Summary: exp10() has problems with <tgmath.h>
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: tydeman.fred at gmail dot com
  Target Milestone: ---

Created attachment 12611
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12611&action=edit
Calls to exp10() as generic and specific functions get different answers

The attachment shows that two "equivalent" calls to exp10() get different
values.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug math/26108] exp10() has problems with <tgmath.h>

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26108

--- Comment #1 from Fred Tydeman <tydeman.fred at gmail dot com> ---
That problem shows up on Intel x86 64-bit Fedora Linux 32 with gcc 10.

Using clang 10, I also get mismatches between specific and generic for fadd,
fsub, fmul, fdiv.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug math/26108] exp10() has problems with <tgmath.h>

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26108

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
exp10 is the only function family from TS 18661-4 that glibc implements,
and the implementation (which long predates that TS) does not include any
<tgmath.h> support.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug math/26108] exp10() has problems with <tgmath.h>

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26108

--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I believe clang provides its own tgmath.h implementation.  If that's being
used, then the issue described with the narrowing functions / macros is
not an issue in glibc.

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