correct fix for log10.

svn path=/trunk/; revision=27482
This commit is contained in:
Magnus Olsen 2007-07-08 15:33:38 +00:00
parent a8ea3c335e
commit aec8f7eff1

View file

@ -15,11 +15,13 @@
/* FUNCTIONS ***************************************************************/
_log10:
push ebp
mov ebp,esp
fldlg2
fld qword ptr [ebp+8]
fyl2x
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