[PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Mon Sep 3 16:52:00 GMT 2018
Hi Jon,
>>>> You can replace all calls to it by sqrt, except for w_sqrt.c and
>>>> wf_sqrt.c
>>>
>> >While -fno-builtin is still being used, this would just make the code slower though.
>>
>>No it would be faster even with -fno-builtin given that practically all uses of sqrt will execute the instruction, not the call.
> Not all targets have a sqrt instruction though.
Like I said, it's not really important to optimize this case, but we could have
machine/*/w_sqrt.c or a new define like TARGET_HAS_SQRT. There is already
math_config.h where such a define could be added.
Wilco
More information about the Newlib
mailing list