[ros-diffs] [greatlrd] 27482: correct fix for log10.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Jul 8 17:33:38 CEST 2007


Author: greatlrd
Date: Sun Jul  8 19:33:38 2007
New Revision: 27482

URL: http://svn.reactos.org/svn/reactos?rev=27482&view=rev
Log:
correct fix for log10.

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

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=27482&r1=27481&r2=27482&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s (original)
+++ trunk/reactos/lib/sdk/crt/math/i386/log10_asm.s Sun Jul  8 19:33:38 2007
@@ -15,11 +15,13 @@
 /* FUNCTIONS ***************************************************************/
 
 _log10:
-        push    ebp
-        mov     ebp,esp            
-        fldlg2  
-        fld     qword ptr [ebp+8]   
-        fyl2x                    
-        pop     ebp
-        ret
 
+    push    ebp
+    mov     ebp,esp
+    fld     qword ptr [ebp+8]       ; Load real from stack
+    fldlg2                          ; Load log base 10 of 2
+    fxch    st(1)                   ; Exchange st, st(1)
+    fyl2x                           ; Compute the log base 10(x)
+    pop     ebp
+    ret
+




More information about the Ros-diffs mailing list