Previous 199869 Revisions Next

r36419 Saturday 14th March, 2015 at 13:44:38 UTC by Samuele Zannoli
i386.c: x87 fpatan implemented using atan2() and not atan() (nw)
[src/emu/cpu/i386]x87ops.inc

trunk/src/emu/cpu/i386/x87ops.inc
r244930r244931
24112411   else
24122412   {
24132413      // TODO: Inaccurate
2414      double val = atan(fx80_to_double(ST(1)) / fx80_to_double(ST(0)));
2414      double val = atan2(fx80_to_double(ST(1)) , fx80_to_double(ST(0)));
24152415      result = double_to_fx80(val);
24162416   }
24172417


Previous 199869 Revisions Next


© 1997-2024 The MAME Team