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