This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15918] New: Unnecessary check for equality in hypotf()
- From: "pipping at exherbo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 01 Sep 2013 21:37:13 +0000
- Subject: [Bug libc/15918] New: Unnecessary check for equality in hypotf()
- Auto-submitted: auto-generated
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.