[ros-diffs] [greatlrd] 26820: optimizing atan and log10, do not use frame pointer, use the stack pointer direcly

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu May 17 12:48:01 CEST 2007


Author: greatlrd
Date: Thu May 17 14:48:00 2007
New Revision: 26820

URL: http://svn.reactos.org/svn/reactos?rev=26820&view=rev
Log:
optimizing atan and log10, do not use frame pointer, use the stack pointer direcly

Modified:
    trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s
    trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s

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_asm.s?rev=26820&r1=26819&r2=26820&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/atan_asm.s Thu May 17 14:48:00 2007
@@ -14,9 +14,6 @@
 /* FUNCTIONS ***************************************************************/
 
 _atan:
-        push    ebp
-        mov     ebp,esp            
-        fld     qword ptr [ebp+8]   
-        fpatan                      
-        pop     ebp
+        fld     qword ptr [esp+4]
+        fpatan
         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/log10_asm.s?rev=26820&r1=26819&r2=26820&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s Thu May 17 14:48:00 2007
@@ -15,11 +15,8 @@
 /* FUNCTIONS ***************************************************************/
 
 _log10:
-        push    ebp
-        mov     ebp,esp            
-        fld     qword ptr [ebp+8]   
-        fldlg2  
-        fyl2x                    
-        pop     ebp
+        fld     qword ptr [esp+4]
+        fldlg2
+        fyl2x
         ret
 




More information about the Ros-diffs mailing list