This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
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