msvcrt: Make the sinhf function NAN preserving.
Signed-off-by: Martin Storsjo <martin@martin.st> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
361143252b
commit
4fd9daea4a
|
@ -1699,6 +1699,9 @@ float CDECL sinhf( float x )
|
||||||
}
|
}
|
||||||
|
|
||||||
/* |x| > logf(FLT_MAX) or nan */
|
/* |x| > logf(FLT_MAX) or nan */
|
||||||
|
if (ui > 0x7f800000)
|
||||||
|
*(DWORD*)&t = *(DWORD*)&x | 0x400000;
|
||||||
|
else
|
||||||
t = __expo2f(absx, 2 * h);
|
t = __expo2f(absx, 2 * h);
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue