Author: fireball
Date: Tue Jul 3 19:24:59 2007
New Revision: 27367
URL:
http://svn.reactos.org/svn/reactos?rev=27367&view=rev
Log:
- Revert changes to CRT which were not supposed to happen at all (26820, 27200:27204), and
were incorrect.
- Remove artifacts from strtoul/strtoull source code (excessive line breaks).
Added:
trunk/reactos/lib/sdk/libcntpr/math/i386/atan_asm.s
- copied unchanged from r27199, trunk/reactos/lib/sdk/libcntpr/math/i386/atan_asm.s
trunk/reactos/lib/sdk/libcntpr/math/i386/cos_asm.s
- copied unchanged from r27199, trunk/reactos/lib/sdk/libcntpr/math/i386/cos_asm.s
trunk/reactos/lib/sdk/libcntpr/math/i386/sin_asm.s
- copied unchanged from r27199, trunk/reactos/lib/sdk/libcntpr/math/i386/sin_asm.s
trunk/reactos/lib/sdk/libcntpr/math/i386/tan_asm.s
- copied unchanged from r27199, trunk/reactos/lib/sdk/libcntpr/math/i386/tan_asm.s
Removed:
trunk/reactos/lib/sdk/libcntpr/math/i386/trig_asm.s
Modified:
trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s
trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s
trunk/reactos/lib/sdk/libcntpr/libcntpr.rbuild
trunk/reactos/lib/sdk/libcntpr/string/strtoul.c
trunk/reactos/lib/sdk/libcntpr/string/strtoull.c
Modified: trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/i386/atan…
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s Tue Jul 3 19:24:59 2007
@@ -14,6 +14,9 @@
/* FUNCTIONS ***************************************************************/
_atan:
- fld qword ptr [esp+4]
- fpatan
+ push ebp
+ mov ebp,esp
+ fld qword ptr [ebp+8]
+ fpatan
+ pop ebp
ret
Modified: trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/math/i386/log1…
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s Tue Jul 3 19:24:59 2007
@@ -15,8 +15,11 @@
/* FUNCTIONS ***************************************************************/
_log10:
- fld qword ptr [esp+4]
- fldlg2
- fyl2x
+ push ebp
+ mov ebp,esp
+ fld qword ptr [ebp+8]
+ fldlg2
+ fyl2x
+ pop ebp
ret
Modified: trunk/reactos/lib/sdk/libcntpr/libcntpr.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/libcntpr/libcntpr.…
==============================================================================
--- trunk/reactos/lib/sdk/libcntpr/libcntpr.rbuild (original)
+++ trunk/reactos/lib/sdk/libcntpr/libcntpr.rbuild Tue Jul 3 19:24:59 2007
@@ -26,18 +26,21 @@
<file>allrem_asm.s</file>
<file>allshl_asm.s</file>
<file>allshr_asm.s</file>
+ <file>atan_asm.s</file>
<file>aulldiv_asm.s</file>
<file>aulldvrm_asm.s</file>
<file>aullrem_asm.s</file>
<file>aullshr_asm.s</file>
<file>ceil_asm.s</file>
+ <file>cos_asm.s</file>
<file>fabs_asm.s</file>
<file>floor_asm.s</file>
<file>ftol_asm.s</file>
<file>log_asm.s</file>
<file>pow_asm.s</file>
+ <file>sin_asm.s</file>
<file>sqrt_asm.s</file>
- <file>trig_asm.s</file>
+ <file>tan_asm.s</file>
</directory>
</if>
<file>abs.c</file>
Removed: trunk/reactos/lib/sdk/libcntpr/math/i386/trig_asm.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/libcntpr/math/i386…
==============================================================================
--- trunk/reactos/lib/sdk/libcntpr/math/i386/trig_asm.s (original)
+++ trunk/reactos/lib/sdk/libcntpr/math/i386/trig_asm.s (removed)
@@ -1,53 +1,0 @@
-/*
- * COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
- * PURPOSE: Run-Time Library
- * FILE: lib/rtl/i386/trig_asm.s
- * PROGRAMER: Aleksey Bragin (aleksey reactos org)
- *
- */
-.globl _atan
-.globl _cos
-.globl _sin
-.globl _tan
-
-.intel_syntax noprefix
-
-/* FUNCTIONS ***************************************************************/
-
-_atan:
- push ebp
- mov ebp,esp
- fld qword ptr [ebp+8]
- fld1
- fpatan
- pop ebp
- ret
-
-_cos:
- push ebp
- mov ebp,esp
- fld qword ptr [ebp+8]
- fcos
- pop ebp
- ret
-
-_sin:
- push ebp
- mov ebp,esp
- fld qword ptr [ebp+8]
- fsin
- pop ebp
- ret
-
-_tan:
- push ebp
- mov ebp,esp
- sub esp,4
- fld qword ptr [ebp+8]
- fptan
- fstp dword ptr [ebp-4]
- mov esp,ebp
- pop ebp
- ret
-
Modified: trunk/reactos/lib/sdk/libcntpr/string/strtoul.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/libcntpr/string/st…
==============================================================================
--- trunk/reactos/lib/sdk/libcntpr/string/strtoul.c (original)
+++ trunk/reactos/lib/sdk/libcntpr/string/strtoul.c Tue Jul 3 19:24:59 2007
@@ -3,7 +3,6 @@
#include <errno.h>
#include <limits.h>
#include <ctype.h>
-
/*
* Convert a string to an unsigned long integer.
@@ -67,7 +66,6 @@
if (any < 0)
{
acc = ULONG_MAX;
-
}
else if (neg)
acc = -acc;
Modified: trunk/reactos/lib/sdk/libcntpr/string/strtoull.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/libcntpr/string/st…
==============================================================================
--- trunk/reactos/lib/sdk/libcntpr/string/strtoull.c (original)
+++ trunk/reactos/lib/sdk/libcntpr/string/strtoull.c Tue Jul 3 19:24:59 2007
@@ -3,7 +3,6 @@
#include <fcntl.h>
#include <limits.h>
#include <ctype.h>
-
unsigned long long
strtoull(const char *nptr, char **endptr, int base)
@@ -59,7 +58,6 @@
if (any < 0)
{
acc = ULLONG_MAX;
-
}
else if (neg)
acc = -acc;
@@ -67,5 +65,3 @@
*endptr = any ? (char *)((size_t)(s - 1)) : (char *)((size_t)nptr);
return acc;
}
-
-