From 0935620f314562eca649d7f01fe35c9871980274 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 17 May 2007 10:48:00 +0000 Subject: [PATCH] optimizing atan and log10, do not use frame pointer, use the stack pointer direcly svn path=/trunk/; revision=26820 --- reactos/lib/sdk/crt/math/i386/atan_asm.s | 7 ++----- reactos/lib/sdk/crt/math/i386/log10_asm.s | 9 +++------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/reactos/lib/sdk/crt/math/i386/atan_asm.s b/reactos/lib/sdk/crt/math/i386/atan_asm.s index 6b21e2d49da..06cb7b850df 100644 --- a/reactos/lib/sdk/crt/math/i386/atan_asm.s +++ b/reactos/lib/sdk/crt/math/i386/atan_asm.s @@ -14,9 +14,6 @@ /* FUNCTIONS ***************************************************************/ _atan: - push ebp - mov ebp,esp - fld qword ptr [ebp+8] - fpatan - pop ebp + fld qword ptr [esp+4] + fpatan ret diff --git a/reactos/lib/sdk/crt/math/i386/log10_asm.s b/reactos/lib/sdk/crt/math/i386/log10_asm.s index 6179f6221a2..624f1a12e61 100644 --- a/reactos/lib/sdk/crt/math/i386/log10_asm.s +++ b/reactos/lib/sdk/crt/math/i386/log10_asm.s @@ -15,11 +15,8 @@ /* FUNCTIONS ***************************************************************/ _log10: - push ebp - mov ebp,esp - fld qword ptr [ebp+8] - fldlg2 - fyl2x - pop ebp + fld qword ptr [esp+4] + fldlg2 + fyl2x ret