- Uhh.. Doing it properly now.

- Also gathered trigonometric function into one file.

svn path=/trunk/; revision=27201
This commit is contained in:
Aleksey Bragin
2007-06-16 11:55:21 +00:00
parent 7c9d0792cb
commit f1c06f9d0b
9 changed files with 40 additions and 70 deletions
+1 -4
View File
@@ -26,21 +26,18 @@
<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>tan_asm.s</file>
<file>trig_asm.s</file>
</directory>
</if>
<file>abs.c</file>
@@ -1,17 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Run-Time Library
* FILE: lib/rtl/i386/atan.S
* PROGRAMER: Magnus Olsen (greatlord@greatlord.com)
*/
.globl _atan
.intel_syntax noprefix
_atan:
fld qword ptr [esp+4]
fld1
fpatan
ret
@@ -1,16 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Run-Time Library
* FILE: lib/rtl/i386/cos.S
* PROGRAMER: Magnus Olsen (greatlord@greatlord.com)
*/
.globl _cos
.intel_syntax noprefix
_cos:
fld qword ptr [esp+4]
fcos
ret
@@ -10,6 +10,6 @@
.intel_syntax noprefix
_fabs:
fld qword ptr [esp+4]
fld qword ptr [esp+8]
fabs
ret
+1 -1
View File
@@ -9,7 +9,7 @@
.intel_syntax noprefix
_log:
fld qword ptr [esp+4]
fld qword ptr [esp+8]
fldln2
fxch st(1)
fyl2x
@@ -1,14 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Run-Time Library
* FILE: lib/rtl/i386/sin.S
* PROGRAMER: Magnus Olsen (greatlord@greatlord.com)
*/
.globl _sin
.intel_syntax noprefix
_sin:
fld qword ptr [esp+4]
fsin
ret
@@ -12,6 +12,6 @@
.intel_syntax noprefix
_sqrt:
fld qword ptr [esp+4]
fld qword ptr [esp+8]
fsqrt
ret
@@ -1,16 +0,0 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Run-Time Library
* FILE: lib/rtl/i386/tan.S
* PROGRAMER: Magnus Olsen (magnus@greatlord.com)
*/
.globl _tan
.intel_syntax noprefix
_tan:
sub esp,4
fld qword ptr [ebp+8]
fptan
fstp dword ptr [ebp+4]
add esp,4;
ret
@@ -0,0 +1,36 @@
/*
* 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
_atan:
fld qword ptr [esp+8]
fld1
fpatan
ret
_cos:
fld qword ptr [esp+8]
fcos
ret
_sin:
fld qword ptr [esp+8]
fsin
ret
_tan:
fld qword ptr [esp+8]
fptan
fstp dword ptr [esp-4]
ret