Re: [PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f

Wilco Dijkstra <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <DB5PR08MB10301E9FD0A30522D01D3F67830C0@DB5PR08MB1030.eurprd08.prod.outlook.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.