[ros-diffs] [fireball] 35677: - Move fdiv pentium bug function stubs to another file. - Exclude platform-independent CI math function stubs when compiling x86 target. Should finally fix bug 1255. See issue #1255 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Tue Aug 26 19:21:02 CEST 2008


Author: fireball
Date: Tue Aug 26 12:21:02 2008
New Revision: 35677

URL: http://svn.reactos.org/svn/reactos?rev=35677&view=rev
Log:
- Move fdiv pentium bug function stubs to another file.
- Exclude platform-independent CI math function stubs when compiling x86 target. Should finally fix bug 1255.
See issue #1255 for more details.

Added:
    trunk/reactos/lib/sdk/crt/math/fdivbug.c   (contents, props changed)
      - copied, changed from r35665, trunk/reactos/lib/sdk/crt/math/stubs.c
Modified:
    trunk/reactos/lib/sdk/crt/crt.rbuild

Modified: trunk/reactos/lib/sdk/crt/crt.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/crt.rbuild?rev=35677&r1=35676&r2=35677&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/crt.rbuild [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/crt.rbuild [iso-8859-1] Tue Aug 26 12:21:02 2008
@@ -86,6 +86,7 @@
 		<file>cabs.c</file>
 		<file>cosh.c</file>
 		<file>div.c</file>
+		<file>fdivbug.c</file>
 		<file>frexp.c</file>
 		<file>huge_val.c</file>
 		<file>hypot.c</file>
@@ -97,7 +98,6 @@
 		<file>rand.c</file>
 		<file>s_modf.c</file>
 		<file>sinh.c</file>
-		<file>stubs.c</file>
 		<file>tanh.c</file>
 		<file>pow_asm.c</file>
 
@@ -114,6 +114,7 @@
 			</directory>
 		</if>
 		<ifnot property="ARCH" value="i386">
+			<file>stubs.c</file>
 		</ifnot>
 	</directory>
 

Copied: trunk/reactos/lib/sdk/crt/math/fdivbug.c (from r35665, trunk/reactos/lib/sdk/crt/math/stubs.c)
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/fdivbug.c?p2=trunk/reactos/lib/sdk/crt/math/fdivbug.c&p1=trunk/reactos/lib/sdk/crt/math/stubs.c&r1=35665&r2=35677&rev=35677&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/math/fdivbug.c [iso-8859-1] Tue Aug 26 12:21:02 2008
@@ -1,136 +1,5 @@
 #include <precomp.h>
 #include <math.h>
-
-double CDECL _CIsin(double x);
-double CDECL _CIcos(double x);
-double CDECL _CItan(double x);
-double CDECL _CIsinh(double x);
-double CDECL _CIcosh(double x);
-double CDECL _CItanh(double x);
-double CDECL _CIasin(double x);
-double CDECL _CIacos(double x);
-double CDECL _CIatan(double x);
-double CDECL _CIatan2(double y, double x);
-double CDECL _CIexp(double x);
-double CDECL _CIlog(double x);
-double CDECL _CIlog10(double x);
-double CDECL _CIpow(double x, double y);
-double CDECL _CIsqrt(double x);
-double CDECL _CIfmod(double x, double y);
-
-
-/*
- * @implemented
- */
-double	CDECL	_CIsin(double x)
-{
-	return sin(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIcos(double x)
-{
-	return cos(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CItan(double x)
-{
-	return tan(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIsinh(double x)
-{
-	return sinh(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIcosh(double x)
-{
-	return cosh(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CItanh(double x)
-{
-	return tanh(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIasin(double x)
-{
-	return asin(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIacos(double x)
-{
-	return acos(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIatan(double x)
-{
-	return atan(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIatan2(double x, double y)
-{
-	return atan2(y, x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIexp(double x)
-{
-	return exp(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIlog(double x)
-{
-	return log(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIlog10(double x)
-{
-	return log10(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIpow(double x, double y)
-{
-	return pow(x, y);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIsqrt(double x)
-{
-	return sqrt(x);
-}
-/*
- * @implemented
- */
-double	CDECL	_CIfmod(double x, double y)
-{
-	return fmod(x, y);
-}
 
 /* The following functions are likely workarounds for the pentium fdiv bug */
 void __stdcall _adj_fdiv_m32( unsigned int arg )

Propchange: trunk/reactos/lib/sdk/crt/math/fdivbug.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/reactos/lib/sdk/crt/math/fdivbug.c
------------------------------------------------------------------------------
    svn:keywords = author date id revision

Propchange: trunk/reactos/lib/sdk/crt/math/fdivbug.c
------------------------------------------------------------------------------
    svn:mergeinfo = 



More information about the Ros-diffs mailing list