newlib: Don't do double divide in powf.
* Use 0.0f instead of 0.0 in divide.
This commit is contained in:
parent
c338bc2255
commit
c874f1145f
@ -108,7 +108,9 @@
|
|||||||
if (_LIB_VERSION == _SVID_)
|
if (_LIB_VERSION == _SVID_)
|
||||||
exc.retval = 0.0;
|
exc.retval = 0.0;
|
||||||
else
|
else
|
||||||
exc.retval = 0.0/0.0; /* X/Open allow NaN */
|
/* Use a float divide, to avoid a soft-float double
|
||||||
|
divide call on single-float only targets. */
|
||||||
|
exc.retval = (0.0f/0.0f); /* X/Open allow NaN */
|
||||||
if (_LIB_VERSION == _POSIX_)
|
if (_LIB_VERSION == _POSIX_)
|
||||||
errno = EDOM;
|
errno = EDOM;
|
||||||
else if (!matherr(&exc)) {
|
else if (!matherr(&exc)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user