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 03/10] Improve performance of sinf and cosf


On Fri, 6 Jul 2018, Szabolcs Nagy wrote:

> +/* Fast cosf implementation.  Worst-case ULP is 0.56072, maximum relative
> +   error is 0.5303p-23.  A single-step signed range reduction is used for
> +   small values.  Large inputs have their range reduced using fast integer
> +   arithmetic.

This needs the same fix as for sincosf to avoid the invalid constant 
0.5303p-23.

> +/* Fast sinf implementation.  Worst-case ULP is 0.56072, maximum relative
> +   error is 0.5303p-23.  A single-step signed range reduction is used for
> +   small values.  Large inputs have their range reduced using fast integer
> +   arithmetic.

Likewise.

OK with those fixes.

As previously discussed, a followup to eliminate __kernel_sinf / 
__kernel_cosf may well make sense.

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