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] New generic cosf


On Tue, 5 Dec 2017, Paul Clarke wrote:

> +	      unsigned int n = ((unsigned int) (abstheta * inv_PI_4)) + 1.0;
> +	      double x = n / 2.0;

I'd expect adding integer 1 and dividing by integer 2, as in the current 
sinf version, unless there's some reason that's incorrect in this case.

-- 
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]