[PATCH] Convert 0.0/0.0 to NAN

Richard Allen rsaxvc@rsaxvc.net
Thu Apr 20 00:01:00 GMT 2017

Whoops, that was the wrong patch. Attached is correct patch.

On Wed, Apr 19, 2017 at 6:50 PM, Richard Allen <rsaxvc@rsaxvc.net> wrote:
> 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-0.0-0.0-to-NAN.patch
Type: text/x-patch
Size: 6642 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170420/8fbd986d/attachment.bin>

More information about the Newlib mailing list