Re: [PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
Wilco Dijkstra <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <DB5PR08MB1030B94ABC62253D577950FF833D0@DB5PR08MB1030.eurprd08.prod.outlook.com> |
[email protected] 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