From c429b7ddd8505a241b6c1fc5e14f8cc7847443b0 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Wed, 20 Mar 2002 07:24:20 +0000 Subject: [PATCH] 2002-03-19 Chris Demetriou * cp1.c (FP_S_s, FP_D_s, FP_S_be, FP_D_be, FP_S_e, FP_D_e, FP_S_f) (FP_D_f, FP_S_fb, FP_D_fb, FPINF_SINGLE, FPINF_DOUBLE): Remove unused definitions. --- sim/mips/ChangeLog | 6 ++++++ sim/mips/cp1.c | 20 -------------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 1d89174dd27..b7b47312d63 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,9 @@ +2002-03-19 Chris Demetriou + + * cp1.c (FP_S_s, FP_D_s, FP_S_be, FP_D_be, FP_S_e, FP_D_e, FP_S_f) + (FP_D_f, FP_S_fb, FP_D_fb, FPINF_SINGLE, FPINF_DOUBLE): Remove + unused definitions. + 2002-03-19 Chris Demetriou * cp1.c: Fix many formatting issues. diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c index d0cf8be8c97..9bd08f9ed6f 100644 --- a/sim/mips/cp1.c +++ b/sim/mips/cp1.c @@ -50,32 +50,12 @@ * i = 63bits = integer */ -/* Extract sign-bit: */ -#define FP_S_s(v) (((v) & (((unsigned) 1) << 31)) ? 1 : 0) -#define FP_D_s(v) (((v) & (((uword64) 1) << 63)) ? 1 : 0) -/* Extract biased exponent: */ -#define FP_S_be(v) (((v) >> 23) & 0xFF) -#define FP_D_be(v) (((v) >> 52) & 0x7FF) -/* Extract unbiased Exponent: */ -#define FP_S_e(v) (FP_S_be (v) - 0x7F) -#define FP_D_e(v) (FP_D_be (v) - 0x3FF) -/* Extract complete fraction field: */ -#define FP_S_f(v) ((v) & ~(((unsigned) 0x1FF) << 23)) -#define FP_D_f(v) ((v) & ~(((uword64) 0xFFF) << 52)) -/* Extract numbered fraction bit: */ -#define FP_S_fb(b, v) (((v) & (1 << (23 - (b)))) ? 1 : 0) -#define FP_D_fb(b, v) (((v) & (1 << (52 - (b)))) ? 1 : 0) - /* Explicit QNaN values used when value required: */ #define FPQNaN_SINGLE (0x7FBFFFFF) #define FPQNaN_WORD (0x7FFFFFFF) #define FPQNaN_DOUBLE ((((uword64) 0x7FF7FFFF) << 32) | 0xFFFFFFFF) #define FPQNaN_LONG ((((uword64) 0x7FFFFFFF) << 32) | 0xFFFFFFFF) -/* Explicit Infinity values used when required: */ -#define FPINF_SINGLE (0x7F800000) -#define FPINF_DOUBLE ((((uword64) 0x7FF00000) << 32) | 0x00000000) - static const char *fpu_format_name (FP_formats fmt); #ifdef DEBUG static const char *fpu_rounding_mode_name (int rm); -- 2.30.2