From aec8f7eff113473614eb6458d79b9d4dc71f6203 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 8 Jul 2007 15:33:38 +0000 Subject: [PATCH] correct fix for log10. svn path=/trunk/; revision=27482 --- reactos/lib/sdk/crt/math/i386/log10_asm.s | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/reactos/lib/sdk/crt/math/i386/log10_asm.s b/reactos/lib/sdk/crt/math/i386/log10_asm.s index 35a06707857..42ea6710fe9 100644 --- a/reactos/lib/sdk/crt/math/i386/log10_asm.s +++ b/reactos/lib/sdk/crt/math/i386/log10_asm.s @@ -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