aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/fpu_helper.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-03-05 21:39:07 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-03-09 15:50:38 +0100
commit67b453ed73fe65949c24e6ca2b43f6816a89a301 (patch)
tree29dedbbff941898a4ec0f97422ff2b8e28377505 /target/m68k/fpu_helper.c
parent248efb66fb88bc17c04a0d0f09a3539a43c80769 (diff)
downloadqemu-67b453ed73fe65949c24e6ca2b43f6816a89a301.zip
qemu-67b453ed73fe65949c24e6ca2b43f6816a89a301.tar.gz
qemu-67b453ed73fe65949c24e6ca2b43f6816a89a301.tar.bz2
target/m68k: implement flog2
Using a local m68k floatx80_log2() [copied from previous: Written by Andreas Grabher for Previous, NeXT Computer Emulator.] Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180305203910.10391-6-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/fpu_helper.c')
-rw-r--r--target/m68k/fpu_helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c
index 2628534..97a4501 100644
--- a/target/m68k/fpu_helper.c
+++ b/target/m68k/fpu_helper.c
@@ -572,3 +572,8 @@ void HELPER(flog10)(CPUM68KState *env, FPReg *res, FPReg *val)
{
res->d = floatx80_log10(val->d, &env->fp_status);
}
+
+void HELPER(flog2)(CPUM68KState *env, FPReg *res, FPReg *val)
+{
+ res->d = floatx80_log2(val->d, &env->fp_status);
+}