1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-09 04:16:08 +00:00

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:
Martin Storsjo 2021-07-28 14:41:57 +02:00 committed by Alexandre Julliard
parent 361143252b
commit 4fd9daea4a

View File

@ -1699,7 +1699,10 @@ float CDECL sinhf( float x )
}
/* |x| > logf(FLT_MAX) or nan */
t = __expo2f(absx, 2 * h);
if (ui > 0x7f800000)
*(DWORD*)&t = *(DWORD*)&x | 0x400000;
else
t = __expo2f(absx, 2 * h);
return t;
}