From f2430a3fdfc8f98abd2bde14b37504bd86ff5344 Mon Sep 17 00:00:00 2001 From: yz70s Date: Sat, 14 Mar 2015 14:44:38 +0100 Subject: i386.c: x87 fpatan implemented using atan2() and not atan() (nw) --- src/emu/cpu/i386/x87ops.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/cpu/i386/x87ops.inc b/src/emu/cpu/i386/x87ops.inc index 0459e39358d..1afd7da0a40 100644 --- a/src/emu/cpu/i386/x87ops.inc +++ b/src/emu/cpu/i386/x87ops.inc @@ -2411,7 +2411,7 @@ void i386_device::x87_fpatan(UINT8 modrm) else { // TODO: Inaccurate - double val = atan(fx80_to_double(ST(1)) / fx80_to_double(ST(0))); + double val = atan2(fx80_to_double(ST(1)) , fx80_to_double(ST(0))); result = double_to_fx80(val); } -- cgit v1.2.3