This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] New generic cosf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]