[PATCH v2] Add math-inline benchmark

Carlos O'Donell carlos@redhat.com
Fri Jul 17 13:48:00 GMT 2015


On 07/17/2015 09:26 AM, Wilco Dijkstra wrote:
> It shouldn't be necessary to use assembly code, GCC is perfectly capable of
> generating efficient code for EXTRACT_WORDS. If GCC doesn't for x64 then you
> should report it and ensure it gets fixed. I don't understand why people keep
> using target-specific hacks and assembly rather than fixing the underlying
> issues and use generic code that works well on all targets...

Agreed. The compiler can't schedule the assembly at all, and worse.

>> So at least on x64 we should publish math_private inlines instead using
>> slow builtins.
> 
> Well it was agreed we are going to use the GCC built-ins and then improve
> those. If you want to propose additional patches with special inlines for
> x64 then please go ahead, but my plan is to improve the builtins.

Agreed.

Cheers,
Carlos.



More information about the Libc-alpha mailing list