[PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Fri Aug 17 15:05:00 GMT 2018
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
More information about the Newlib
mailing list