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/log1…
==============================================================================
--- 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
+