aboutsummaryrefslogtreecommitdiff
path: root/gdb/m88k-tdep.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-13 19:41:01 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-13 19:41:01 +0000
commitdbbf95081cea3ed965108d5ff7ed1c77743d2365 (patch)
tree48219348a40639b83a27deb98fcb7c7eb5761992 /gdb/m88k-tdep.c
parent198133b9a3e6e0e85e30914103d74a9138449a4a (diff)
downloadgdb-dbbf95081cea3ed965108d5ff7ed1c77743d2365.zip
gdb-dbbf95081cea3ed965108d5ff7ed1c77743d2365.tar.gz
gdb-dbbf95081cea3ed965108d5ff7ed1c77743d2365.tar.bz2
* m88k-tdep.c (IEEE_isNAN): Remove.
config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same broken isNAN as on the mips.
Diffstat (limited to 'gdb/m88k-tdep.c')
-rw-r--r--gdb/m88k-tdep.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gdb/m88k-tdep.c b/gdb/m88k-tdep.c
index bc6785b..1ebc893 100644
--- a/gdb/m88k-tdep.c
+++ b/gdb/m88k-tdep.c
@@ -557,37 +557,6 @@ frame_saved_pc (frame)
}
-#if TARGET_BYTE_ORDER != HOST_BYTE_ORDER
-you lose
-#else /* Host and target byte order the same. */
-#define SINGLE_EXP_BITS 8
-#define DOUBLE_EXP_BITS 11
-int
-IEEE_isNAN(fp, len)
- int *fp, len;
- /* fp points to a single precision OR double precision
- * floating point value; len is the number of bytes, either 4 or 8.
- * Returns 1 iff fp points to a valid IEEE floating point number.
- * Returns 0 if fp points to a denormalized number or a NaN
- */
-{
- int exponent;
- if (len == 4)
- {
- exponent = *fp;
- exponent = exponent << 1 >> (32 - SINGLE_EXP_BITS - 1);
- return ((exponent == -1) || (! exponent && *fp));
- }
- else if (len == 8)
- {
- exponent = *(fp+1);
- exponent = exponent << 1 >> (32 - DOUBLE_EXP_BITS - 1);
- return ((exponent == -1) || (! exponent && *fp * *(fp+1)));
- }
- else return 1;
-}
-#endif /* Host and target byte order the same. */
-
static int
pushed_size (prev_words, v)
int prev_words;