From: Kevin Chan Subject: msvcrt: remove errno EDOM from atan, exp and tanh Message-Id: Date: Sun, 22 Mar 2015 21:50:41 +0800 - Fixed the problem of atan(INF)/tanh(INF)/exp(INF) causing errno EDOM This patch fixes parts of these two bugs: 37149, 37150 --- dlls/msvcrt/math.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index acac35d..19989c9 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -363,7 +363,6 @@ double CDECL MSVCRT_asin( double x ) */ double CDECL MSVCRT_atan( double x ) { - if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM; return atan(x); } @@ -399,7 +398,6 @@ double CDECL MSVCRT_cosh( double x ) */ double CDECL MSVCRT_exp( double x ) { - if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM; return exp(x); } @@ -484,7 +482,6 @@ double CDECL MSVCRT_tan( double x ) */ double CDECL MSVCRT_tanh( double x ) { - if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM; return tanh(x); } -- 2.3.3
- Fixed the problem of atan(INF)/tanh(INF)/exp(INF) causing errno EDOM

This patch fixes parts of these two bugs: 37149, 37150

---
 dlls/msvcrt/math.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index acac35d..19989c9 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -363,7 +363,6 @@ double CDECL MSVCRT_asin( double x )
  */
 double CDECL MSVCRT_atan( double x )
 {
-  if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
   return atan(x);
 }
 
@@ -399,7 +398,6 @@ double CDECL MSVCRT_cosh( double x )
  */
 double CDECL MSVCRT_exp( double x )
 {
-  if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
   return exp(x);
 }
 
@@ -484,7 +482,6 @@ double CDECL MSVCRT_tan( double x )
  */
 double CDECL MSVCRT_tanh( double x )
 {
-  if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
   return tanh(x);
 }
 
-- 
2.3.3