[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
Tue Jul 3 19:04:29 UTC 2018


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

            Bug ID: 229501
           Summary: [libm] Reduce diff between src/e_j0.c and src/e_j0f.c
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: sgk at troutmask.apl.washington.edu

Created attachment 194865
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=194865&action=edit
Use literal constants

The attached diff reduces the diff between src/e_j0.c and src/e_j0f.c.
Specifically, where possible it uses literal integer constants to
remove the need for casting a double literal constant to a float, and
it introduces 'static const <type> qrtr = 0.25' and 'static const <type>
eighth = 0.125' to eliminate the need for casting doubles to floats.
Exhaustive testing of j0f(x) in the domain [0,1e+30) shows no differences.

While here convert a sentence fragment in a comment to a sentence.

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


More information about the freebsd-bugs mailing list