diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-03-12 21:27:22 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-03-13 16:34:16 +0100 |
commit | 8c992abc892c90caf1d4dd5b4482cda052a280ba (patch) | |
tree | 127e83d9982c53b2c67e0c45cabf00463686eb5d /target/m68k/fpu_helper.c | |
parent | 47446c9ce34b6685ffe20e829ff6c9aaefd3af0a (diff) | |
download | qemu-8c992abc892c90caf1d4dd5b4482cda052a280ba.zip qemu-8c992abc892c90caf1d4dd5b4482cda052a280ba.tar.gz qemu-8c992abc892c90caf1d4dd5b4482cda052a280ba.tar.bz2 |
target/m68k: implement fatan
Using a local m68k floatx80_atan()
[copied from previous:
Written by Andreas Grabher for Previous, NeXT Computer Emulator.]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180312202728.23790-6-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/fpu_helper.c')
-rw-r--r-- | target/m68k/fpu_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c index 36e34d4..4732849 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -618,3 +618,8 @@ void HELPER(fsincos)(CPUM68KState *env, FPReg *res0, FPReg *res1, FPReg *val) res1->d = floatx80_cos(a, &env->fp_status); res0->d = floatx80_sin(a, &env->fp_status); } + +void HELPER(fatan)(CPUM68KState *env, FPReg *res, FPReg *val) +{ + res->d = floatx80_atan(val->d, &env->fp_status); +} |