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] Benchtests for sinf, cosf and sincosf


On Wed, 11 Oct 2017, Siddhesh Poyarekar wrote:

> On Tuesday 10 October 2017 09:36 PM, Rajalakshmi Srinivasaraghavan wrote:
> > Numbers used from cos and sin inputs.
> > 
> > 2017-10-10  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
> > 
> > 	* benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
> > 	* benchtests/sincosf-inputs: New file.
> > 	* benchtests/cosf-inputs: New file.
> > 	* benchtests/sinf-inputs: New file.
> 
> I think we need an include mechanisms for these files now, where you
> could just do something like:
> 
> ##include-inputs: sin

I don't think that's appropriate for sharing between different types.  The 
inputs for sin include many outside the range of float (which probably 
illustrates how unrepresentative they are of typical usage of sin), and we 
don't want the float test to have lots of infinities tested.

Sharing inputs between sinf, cosf and sincosf may make much more 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]