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 libc/15918] New: Unnecessary check for equality in hypotf()


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.


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