optimizing atan and log10, do not use frame pointer, use the stack pointer direcly

svn path=/trunk/; revision=26820
This commit is contained in:
Magnus Olsen 2007-05-17 10:48:00 +00:00
parent 70e2b462a5
commit 0935620f31
2 changed files with 5 additions and 11 deletions

View file

@ -14,9 +14,6 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
_atan: _atan:
push ebp fld qword ptr [esp+4]
mov ebp,esp fpatan
fld qword ptr [ebp+8]
fpatan
pop ebp
ret ret

View file

@ -15,11 +15,8 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
_log10: _log10:
push ebp fld qword ptr [esp+4]
mov ebp,esp fldlg2
fld qword ptr [ebp+8] fyl2x
fldlg2
fyl2x
pop ebp
ret ret