msvcr120: Don't double-check error conditions in log2f.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
792e7046a6
commit
417b2a4f52
|
@ -2510,9 +2510,9 @@ double CDECL MSVCR120_log2(double x)
|
|||
*/
|
||||
float CDECL MSVCR120_log2f(float x)
|
||||
{
|
||||
#ifdef HAVE_LOG2F
|
||||
if (x < 0) *MSVCRT__errno() = MSVCRT_EDOM;
|
||||
else if (x == 0) *MSVCRT__errno() = MSVCRT_ERANGE;
|
||||
#ifdef HAVE_LOG2F
|
||||
return log2f(x);
|
||||
#else
|
||||
return MSVCR120_log2(x);
|
||||
|
|
Loading…
Reference in New Issue