[PATCH] Convert 0.0/0.0 to NAN

Richard Allen rsaxvc@rsaxvc.net
Wed Apr 19 23:50:00 GMT 2017


With newlib's default compiler flags(-O2 and whatnot),
the GCC I'm using creates calls to __aeabi_(f|d)div.
This causes a little extra register copying
and an unnecessary branch.

Additionally, __aeabi_?div may throw exceptions,
which is probably not what we want a
simple assignment to do.

Compiler version tested:
arm-none-eabi-gcc (15:5.4.1+svn241155-1) 5.4.1 20160919

-Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Convert-rint-to-rintf.patch
Type: text/x-patch
Size: 1105 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170419/be60016b/attachment.bin>


More information about the Newlib mailing list