From 8d40559a620976992d92f4d4ca5195023c728286 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 20 Feb 2015 08:52:34 -0500 Subject: [PATCH] remove dead code --- toolbox/sane.cpp | 85 +----------------------------------------------- 1 file changed, 1 insertion(+), 84 deletions(-) diff --git a/toolbox/sane.cpp b/toolbox/sane.cpp index e474986..aa583fe 100644 --- a/toolbox/sane.cpp +++ b/toolbox/sane.cpp @@ -353,94 +353,11 @@ using std::to_string; - uint16_t fl2x() - { - // long to extended (80-bit fp) - uint16_t op; - uint32_t dest; - uint32_t src; - - StackFrame<10>(src, dest, op); - - Log(" FL2X(%08x, %08x, %04x)\n", src, dest, op); - - int32_t i = readnum(src); - - if (ToolBox::Trace) - { - std::string tmp1 = std::to_string(i); - Log(" %s\n", tmp1.c_str()); - } - - writenum((extended)i, dest); - - return 0; - } - -#if 0 - uint16_t fdivx() - { - // div extended (80-bit fp) - uint16_t op; - uint32_t dest; - uint32_t src; - - StackFrame<10>(src, dest, op); - - Log(" FDIVX(%08x, %08x, %04x)\n", src, dest, op); - - extended s = readnum(src); - extended d = readnum(dest); - - if (ToolBox::Trace) - { - std::string tmp1 = std::to_string(d); - std::string tmp2 = std::to_string(s); - Log(" %s / %s\n", tmp1.c_str(), tmp2.c_str()); - } - - // dest = dest / src - d = d / s; - - writenum((extended)d, dest); - - return 0; - } - - uint16_t fmulx() - { - // multiply extended (80-bit fp) - uint16_t op; - uint32_t dest; - uint32_t src; - - StackFrame<10>(src, dest, op); - - Log(" FMULX(%08x, %08x, %04x)\n", src, dest, op); - - extended s = readnum(src); - extended d = readnum(dest); - - if (ToolBox::Trace) - { - std::string tmp1 = std::to_string(d); - std::string tmp2 = std::to_string(s); - Log(" %s * %s\n", tmp1.c_str(), tmp2.c_str()); - } - - d = d * s; - - writenum((extended)d, dest); - - return 0; - return 0; - } -#endif - uint16_t fx2dec() { // extended (80-bit fp) to decimal // convert a to d based on decform f + // used by printf %g, %f, %e, etc uint16_t op; uint32_t f_adr; uint32_t a_adr;