This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16369] New: Typo in csloww () in sysdeps/ieee754/dbl-64/s_sin.c
- From: "ilmalakhov at yandex dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 26 Dec 2013 11:12:25 +0000
- Subject: [Bug math/16369] New: Typo in csloww () in sysdeps/ieee754/dbl-64/s_sin.c
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16369
Bug ID: 16369
Summary: Typo in csloww () in sysdeps/ieee754/dbl-64/s_sin.c
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: ilmalakhov at yandex dot ru
Hi.
It's likely that there is a misprint in `sysdeps/ieee754/dbl-64/s_sin.c'
introduced by commit 4aafb73cb29df05f040b150fc06f756921825bbd while
consolidating common Taylor series polynomials into macros:
static double
SECTION
csloww (double x, double dx, double orig)
{
. . .
/* Taylor series */
t = TAYLOR_SLOW (x, dx, cor);
. . .
if (res == res + cor)
return res;
. . .
The previous code should have been replaced with `res = TAYLOR_SLOW (. . .)'
instead by analogy with `bsloww ()' and others. Currently `res' in `csloww ()'
remains uninitialized, which leads to an unpredictable result of this function.
--
You are receiving this mail because:
You are on the CC list for the bug.