diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-03-12 21:27:19 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-03-13 16:33:54 +0100 |
commit | 5add1ac42faffd3d3639101fa778dced693a65a3 (patch) | |
tree | 73dfff9d401ae995610f38c8047670bc56e34f6b /target/m68k/fpu_helper.c | |
parent | 273401809c8a8330e5430f2c958467efa7079b2c (diff) |
target/m68k: implement fsin
Using a local m68k floatx80_sin()
[copied from previous:
Written by Andreas Grabher for Previous, NeXT Computer Emulator.]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180312202728.23790-3-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 c41115ea05..a6cfb4db1a 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -597,3 +597,8 @@ void HELPER(ftan)(CPUM68KState *env, FPReg *res, FPReg *val) { res->d = floatx80_tan(val->d, &env->fp_status); } + +void HELPER(fsin)(CPUM68KState *env, FPReg *res, FPReg *val) +{ + res->d = floatx80_sin(val->d, &env->fp_status); +} |