mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 12:14:11 +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:
parent
361143252b
commit
4fd9daea4a
|
@ -1699,7 +1699,10 @@ float CDECL sinhf( float x )
|
||||||
}
|
}
|
||||||
|
|
||||||
/* |x| > logf(FLT_MAX) or nan */
|
/* |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;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue