aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2002-03-20 07:24:20 +0000
committerChris Demetriou <cgd@google.com>2002-03-20 07:24:20 +0000
commitc429b7ddd8505a241b6c1fc5e14f8cc7847443b0 (patch)
treeb05f5bb60c40005bd8deddf48b434e50ce398345
parent37d146fa1d4a2e420641014d9327c031ccaa3e5f (diff)
downloadgdb-c429b7ddd8505a241b6c1fc5e14f8cc7847443b0.zip
gdb-c429b7ddd8505a241b6c1fc5e14f8cc7847443b0.tar.gz
gdb-c429b7ddd8505a241b6c1fc5e14f8cc7847443b0.tar.bz2
2002-03-19 Chris Demetriou <cgd@broadcom.com>
* 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.
-rw-r--r--sim/mips/ChangeLog6
-rw-r--r--sim/mips/cp1.c20
2 files changed, 6 insertions, 20 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 1d89174..b7b4731 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,5 +1,11 @@
2002-03-19 Chris Demetriou <cgd@broadcom.com>
+ * 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 <cgd@broadcom.com>
+
* cp1.c: Fix many formatting issues.
2002-03-19 Chris G. Demetriou <cgd@broadcom.com>
diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c
index d0cf8be..9bd08f9 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);