Date: Tue, 03 Jul 2018 19:04:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229501] [libm] Reduce diff between src/e_j0.c and src/e_j0f.c Message-ID: <bug-229501-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: sgk@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229501-227>
