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
jon@beniston.com wrote:
> The code calls __builtin_sqrt, not sqrt. It's that I want to inline. If you
> change to call sqrt, you'll potentially get recursion.
You mean __ieee754_sqrt? You can replace all calls to it by sqrt,
except for w_sqrt.c and wf_sqrt.c where you leave it as is.
So there is no recursion.
> On the <0 path, GCC still calls sqrt in order to set errno.
Sure, but correct code executes the sqrt instruction, not the call.
Wilco