public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/26108] New: exp10() has problems with <tgmath.h>
@ 2020-06-10 22:40 tydeman.fred at gmail dot com
2020-06-10 23:01 ` [Bug math/26108] " tydeman.fred at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tydeman.fred at gmail dot com @ 2020-06-10 22:40 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/26108] exp10() has problems with <tgmath.h>
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
@ 2020-06-10 23:01 ` tydeman.fred at gmail dot com
2020-06-10 23:03 ` joseph at codesourcery dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tydeman.fred at gmail dot com @ 2020-06-10 23:01 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/26108] exp10() has problems with <tgmath.h>
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
2020-06-10 23:01 ` [Bug math/26108] " tydeman.fred at gmail dot com
@ 2020-06-10 23:03 ` joseph at codesourcery dot com
2020-06-10 23:06 ` joseph at codesourcery dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2020-06-10 23:03 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/26108] exp10() has problems with <tgmath.h>
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
2020-06-10 23:01 ` [Bug math/26108] " tydeman.fred at gmail dot com
2020-06-10 23:03 ` joseph at codesourcery dot com
@ 2020-06-10 23:06 ` joseph at codesourcery dot com
2021-09-30 20:41 ` cvs-commit at gcc dot gnu.org
2021-09-30 20:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2020-06-10 23:06 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/26108] exp10() has problems with <tgmath.h>
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
` (2 preceding siblings ...)
2020-06-10 23:06 ` joseph at codesourcery dot com
@ 2021-09-30 20:41 ` cvs-commit at gcc dot gnu.org
2021-09-30 20:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-30 20:41 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26108
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Joseph Myers <jsm28@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=52c057e37c3e0d1451f1c1cc0465eddee6cf236d
commit 52c057e37c3e0d1451f1c1cc0465eddee6cf236d
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Sep 30 20:40:34 2021 +0000
Add exp10 macro to <tgmath.h> (bug 26108)
glibc has had exp10 functions since long before they were
standardized; now they are standardized in TS 18661-4 and C2X, they
are also specified there to have a corresponding type-generic macro.
Add one to <tgmath.h>, so fixing bug 26108.
glibc doesn't have other functions from TS 18661-4 yet, but when
added, it will be natural to add the type-generic macro for each
function family at the same time as the functions.
Tested for x86_64.
--
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/26108] exp10() has problems with <tgmath.h>
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
` (3 preceding siblings ...)
2021-09-30 20:41 ` cvs-commit at gcc dot gnu.org
@ 2021-09-30 20:42 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2021-09-30 20:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26108
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Target Milestone|--- |2.35
Resolution|--- |FIXED
--- Comment #5 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed (i.e. tgmath.h macro for exp10 added) for 2.35.
--
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-09-30 20:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 22:40 [Bug math/26108] New: exp10() has problems with <tgmath.h> tydeman.fred at gmail dot com
2020-06-10 23:01 ` [Bug math/26108] " tydeman.fred at gmail dot com
2020-06-10 23:03 ` joseph at codesourcery dot com
2020-06-10 23:06 ` joseph at codesourcery dot com
2021-09-30 20:41 ` cvs-commit at gcc dot gnu.org
2021-09-30 20:42 ` 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).