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] Speed up math/test-tgmath2.c


On Fri, 4 Nov 2016, Steve Ellcey wrote:

> > +  return test_cos (vint1, vllong1)
> > +	 + test_fabs (vint1, vllong1)
> > +	 + test_conj (vint1, vllong1)
> > +	 + test_expm1 (vint1, vllong1)
> > +	 + test_lrint (vint1, vllong1)
> > +	 + test_ldexp (vint1, vllong1)
> > +	 + test_atan2 (vint1, vllong1)
> > +	 + test_remquo (vint1, vllong1)
> > +	 + test_pow (vint1, vllong1)
> > +	 + test_fma_1 (vint1, vllong1)
> > +	 + test_fma_2 (vint1, vllong1)
> > +	 + test_fma_3 (vint1, vllong1)
> > +	 + test_fma_4 (vint1, vllong1);

You don't want to add up test results like that; you should OR them 
together instead, to avoid the potential for test results adding up to 77 
and wrongly becoming UNSUPPORTED.  (In this case of course there aren't 
enough tests to get to 77, but the principle applies that you should avoid 
the test return being a count of something.)

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