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] Optimized generic expf and exp2f


Arjan van de Ven wrote:
>> 
>> expf reciprocal-throughput: 1.5x faster
>> expf latency: 1.4x faster
>
> interesting; the fma existing expf for x86_64 is 10 to 11 cycles reciprocal-throughput ;-)
> time to see how you got that 1.5x faster....

Just using a good algorithm :-)  It's not the first time generic C
code beats "optimized" assembler implementations in GLIBC,
and it won't be the last... This shows that optimizing generic
code is a much better strategy overall.

Wilco
    

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