From 449d45643c21aae1b3e6ab5c56ef65397eeaa257 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 11 Jan 2004 09:41:52 +0000 Subject: [PATCH] somehow atan translates to atan2(Fizzban) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1559 --- src/fpu/fpu_instructions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fpu/fpu_instructions.h b/src/fpu/fpu_instructions.h index 3eb4ef58..81a65c46 100644 --- a/src/fpu/fpu_instructions.h +++ b/src/fpu/fpu_instructions.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: fpu_instructions.h,v 1.15 2004-01-10 14:03:35 qbix79 Exp $ */ +/* $Id: fpu_instructions.h,v 1.16 2004-01-11 09:41:52 qbix79 Exp $ */ static void FPU_FINIT(void) { @@ -96,7 +96,7 @@ static void FPU_FSQRT(void){ return; } static void FPU_FPATAN(void){ - fpu.regs[ST(1)].d = atan(fpu.regs[ST(1)].d/fpu.regs[TOP].d); + fpu.regs[ST(1)].d = atan2(fpu.regs[ST(1)].d,fpu.regs[TOP].d); FPU_FPOP(); FPU_SET_C2(0); //flags and such :)