public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15918] New: Unnecessary check for equality in hypotf()
@ 2013-09-01 21:37 pipping at exherbo dot org
  2013-09-02  4:09 ` [Bug libc/15918] " bugdal at aerifal dot cx
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pipping at exherbo dot org @ 2013-09-01 21:37 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 15918
           Summary: Unnecessary check for equality in hypotf()
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: pipping at exherbo dot org
                CC: drepper.fsp at gmail dot com

The file

  sysdeps / ieee754 / flt-32 / e_hypotf.c

contains the lines

  31             if (x == y)
  32               return fabsf(y);
  33             return fabsf(x);

  37             if (x == y)
  38               return fabsf(x);
  39             return fabsf(y);

as of revision 8f499b5fdeb40ff4861a5b35dbbb3ecf6161c9c0. Obviously, the former
chunk is equivalent to

  fabsf(x);

and the latter chunk is equivalent to

  fabsf(y);

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


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

end of thread, other threads:[~2015-09-15 17:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-01 21:37 [Bug libc/15918] New: Unnecessary check for equality in hypotf() pipping at exherbo dot org
2013-09-02  4:09 ` [Bug libc/15918] " bugdal at aerifal dot cx
2013-09-02  9:23 ` pipping at exherbo dot org
2013-09-02 13:51 ` bugdal at aerifal dot cx
2014-02-07  2:59 ` [Bug math/15918] " jsm28 at gcc dot gnu.org
2014-06-13 12:58 ` fweimer at redhat dot com
2015-09-15 17:25 ` jsm28 at gcc dot gnu.org
2015-09-15 17:25 ` cvs-commit 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).