diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-03-05 21:39:05 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-03-09 15:50:38 +0100 |
commit | 50067bd16fead5d78a283130efbf3e3b026de450 (patch) | |
tree | 23ad68be63442786bf3768c0353bf0d7b710d6aa /target/m68k/fpu_helper.c | |
parent | 4b5c65b8f02a057bc1b77839b5012544f96fec80 (diff) |
target/m68k: implement flogn
Using a local m68k floatx80_logn()
[copied from previous:
Written by Andreas Grabher for Previous, NeXT Computer Emulator.]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180305203910.10391-4-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 614064612e..cc6d3dfa52 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -562,3 +562,8 @@ void HELPER(flognp1)(CPUM68KState *env, FPReg *res, FPReg *val) { res->d = floatx80_lognp1(val->d, &env->fp_status); } + +void HELPER(flogn)(CPUM68KState *env, FPReg *res, FPReg *val) +{ + res->d = floatx80_logn(val->d, &env->fp_status); +} |