math: fix expf(-NAN) and exp2f(-NAN) to return -NAN instead of 0
authorSzabolcs Nagy <nsz@port70.net>
Fri, 4 Mar 2016 21:23:33 +0000 (21:23 +0000)
committerRich Felker <dalias@aerifal.cx>
Fri, 4 Mar 2016 22:58:49 +0000 (17:58 -0500)
expf(-NAN) was treated as expf(-large) which unconditionally
returns +0, so special case +-NAN.
reported by Petr Hosek.


No differences found