[Bug 229501] [libm] Reduce diff between src/e_j0.c and src/e_j0f.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 14 15:08:46 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229501

Pedro F. Giffuni <pfg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #200917|0                           |1
        is obsolete|                            |

--- Comment #3 from Pedro F. Giffuni <pfg at FreeBSD.org> ---
Comment on attachment 200917
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200917
Use literal constants

According to bde@:

It's silly to use 0.0 for float in some contexts when the main point of
the patch is to use integer constants that will be converted to float
instead of explicit float constants.  0.0 isn't even a float constant,
but is converted to one before assignment to a float variable.

Also, static initialization to any type of 0 is redundant.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list