[PATCH] Optimized generic expf and exp2f

Wilco Dijkstra Wilco.Dijkstra@arm.com
Wed Sep 6 12:55:00 GMT 2017


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
    


More information about the Libc-alpha mailing list