Fix error in powf for (-1.0, NaN) input

Prevent confusion between -1.0 and 1.0 in powf. The corresponding
similar error was previously fixed for pow (see commit bb25dd1b)
This commit is contained in:
Fabian Schriever 2020-03-02 15:40:23 +01:00 committed by Corinna Vinschen
parent f973a7d8be
commit cef36220f2
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ ivln2_l = 7.0526075433e-06; /* 0x36eca570 =1/ln2 tail*/
/* x|y==NaN return NaN unless x==1 then return 1 */
if(FLT_UWORD_IS_NAN(ix) ||
FLT_UWORD_IS_NAN(iy)) {
if(ix==0x3f800000) return one;
if(hx==0x3f800000) return one;
else return nanf("");
}