This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/16369] New: Typo in csloww () in sysdeps/ieee754/dbl-64/s_sin.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]