public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pipping at exherbo dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/15918] New: Unnecessary check for equality in hypotf()
Date: Sun, 01 Sep 2013 21:37:00 -0000	[thread overview]
Message-ID: <bug-15918-131@http.sourceware.org/bugzilla/> (raw)

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.


             reply	other threads:[~2013-09-01 21:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-01 21:37 pipping at exherbo dot org [this message]
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 ` cvs-commit at gcc dot gnu.org
2015-09-15 17:25 ` jsm28 at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15918-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).