[PATCH 1/2] Avoid implicit floating point conversions [v2]

Keith Packard keithp@keithp.com
Mon Aug 24 15:33:58 GMT 2020


Corinna Vinschen via Newlib <newlib@sourceware.org> writes:

> Not taking implicit compiler optimisations into account, wouldn't it
> make more sense to avoid the conversion altogether, using
> __builtin_inf() in these places?

Yeah, could do that instead. I think it's mostly a matter of what looks
better -- using the "standard" value of INFINITY and casting or using a
compiler internal value without. I think it'll confuse an equal number
of people either way.

Any preferences?

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20200824/b564aeb9/attachment.sig>


More information about the Newlib mailing list