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] Inline C99 math functions


On 06/16/2015 09:43 AM, OndÅej BÃlka wrote:
>> So to make this proposal to move forward, how exactly do you propose to
>> create a benchtest for such scenario? I get this is tricky and a lot of
>> variables may apply, but I do agree with Joseph that we shouldn't quite
>> aim for optimal performance, imho using compiler builtins with reasonable
>> performance is a gain in code maintainability.
>>
> As I said before about these they are hard to measure and I could
> argue also versus my benchmark that its inaccurate as it doesn't measure
> effect of cpu pipeline when function does other computation. Answer is
> don't do microbenchmark.

That's not an answer, an answer is "Here's a patch to extend the libm testing
to show how isinf/isnan/signbit/isfinite/isnormal/fpclassify impact performance."

I agree that microbenchmarks can be misleading if interpreted by automated
systems, but we aren't talking about that yet, we are talking about experts
using these tools to discuss patches in an objective fashion.

Cheers,
Carlos.


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