public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14163] New: Software implementation of cosf is not decreasing on range [0,pi/2]
@ 2012-05-24 17:46 martin.brain at cs dot ox.ac.uk
  2012-05-24 18:45 ` [Bug math/14163] " jsm28 at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: martin.brain at cs dot ox.ac.uk @ 2012-05-24 17:46 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14163

             Bug #: 14163
           Summary: Software implementation of cosf is not decreasing on
                    range [0,pi/2]
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: martin.brain@cs.ox.ac.uk
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6421
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6421
An example of one of the glitches

While verifying parts of the software trigonometric functions using CBMC I
found that __kernel_cosf ( glibc-2.15/sysdeps/ieee754/flt-32/k_cosf.c ) has
5530 points in the range [0.1,pi/2] where inaccuracies in the last bit mean
that the function is not descreasing.  I.E. x < y but cos(x) < cos(y).  The
attached code demonstrates this effect on x86_64 (x86 uses the x87 sin and cos
hardware and so is not effected).  Interestingly the corresponding code for sin
does not have this issue.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/14163] Software implementation of cosf is not decreasing on range [0,pi/2]
  2012-05-24 17:46 [Bug libc/14163] New: Software implementation of cosf is not decreasing on range [0,pi/2] martin.brain at cs dot ox.ac.uk
@ 2012-05-24 18:45 ` jsm28 at gcc dot gnu.org
  2013-11-28 22:34 ` jsm28 at gcc dot gnu.org
  2014-06-19 14:37 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-05-24 18:45 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14163

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |math

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/14163] Software implementation of cosf is not decreasing on range [0,pi/2]
  2012-05-24 17:46 [Bug libc/14163] New: Software implementation of cosf is not decreasing on range [0,pi/2] martin.brain at cs dot ox.ac.uk
  2012-05-24 18:45 ` [Bug math/14163] " jsm28 at gcc dot gnu.org
@ 2013-11-28 22:34 ` jsm28 at gcc dot gnu.org
  2014-06-19 14:37 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-11-28 22:34 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
glibc accuracy goals are now documented in the manual and the FAQ and
monotonicity is explicitly excluded - without ruling out the possibility that
in future we could add correctly rounding functions under names such as crcosf,
or other functions with well-defined error bounds, probably automatically
generated with tools such as metalibm.

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


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

* [Bug math/14163] Software implementation of cosf is not decreasing on range [0,pi/2]
  2012-05-24 17:46 [Bug libc/14163] New: Software implementation of cosf is not decreasing on range [0,pi/2] martin.brain at cs dot ox.ac.uk
  2012-05-24 18:45 ` [Bug math/14163] " jsm28 at gcc dot gnu.org
  2013-11-28 22:34 ` jsm28 at gcc dot gnu.org
@ 2014-06-19 14:37 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-19 14:37 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

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


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

end of thread, other threads:[~2014-06-19 14:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24 17:46 [Bug libc/14163] New: Software implementation of cosf is not decreasing on range [0,pi/2] martin.brain at cs dot ox.ac.uk
2012-05-24 18:45 ` [Bug math/14163] " jsm28 at gcc dot gnu.org
2013-11-28 22:34 ` jsm28 at gcc dot gnu.org
2014-06-19 14:37 ` fweimer at redhat dot com

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