Commit 4fd9daea authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

msvcrt: Make the sinhf function NAN preserving.

parent 36114325
...@@ -1699,6 +1699,9 @@ float CDECL sinhf( float x ) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment