This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] New generic cosf
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paul Clarke <pc at us dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>, Matt Turner <mattst88 at gmail dot com>
- Date: Thu, 7 Dec 2017 00:09:14 +0000
- Subject: Re: [PATCH v2] New generic cosf
- Authentication-results: sourceware.org; auth=none
- References: <7aa9f1c0-cced-d24e-8982-4cdb346f1a6d@us.ibm.com>
On Wed, 6 Dec 2017, Paul Clarke wrote:
> +/* PI/2 with 98 bits of accuracy. */
> +static const double PI_2_hi = -0x1.921fb544p+0;
> +static const double PI_2_lo = -0x1.0b4611a626332p-34;
This is actually -PI/2, not PI/2. The comment in s_sinf.c should be fixed
accordingly.
This cosf implementation is OK with that change.
--
Joseph S. Myers
joseph@codesourcery.com