* m88k-tdep.c (IEEE_isNAN): Remove.
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 13 Jun 1993 19:41:01 +0000 (19:41 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 13 Jun 1993 19:41:01 +0000 (19:41 +0000)
config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0.  This was the same
broken isNAN as on the mips.

gdb/ChangeLog
gdb/config/m88k/tm-m88k.h
gdb/m88k-tdep.c

index 0c99ba13e66fdc2a8243ba92904bb7f86bf9c153..92dacdf347079d8d0a06ec55ba08c232a65c029e 100644 (file)
@@ -1,5 +1,9 @@
 Sun Jun 13 09:17:48 1993  Jim Kingdon  (kingdon@cygnus.com)
 
+       * 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.
+
        * valprint.c (_initialize_valprint): Use c->function.sfunc not just
        c->function.
 
index cfcc5a27d5cc14b05d776dcc42af491be7bbda87..82f2e39a4f2efacb3633bcea78983df34ea3d4fb 100644 (file)
@@ -96,10 +96,9 @@ extern CORE_ADDR skip_prologue ();
 
 #define ABOUT_TO_RETURN(pc) (read_memory_integer (pc, 2) == 0xF800)
 
-/* Return 1 if P points to an invalid floating point value.
-   LEN is the length in bytes.  */
+/* This is taken care of in print_floating [IEEE_FLOAT].  */
 
-#define INVALID_FLOAT(p, len) IEEE_isNAN(p,len)
+#define INVALID_FLOAT(p,len) 0
 
 /* Say how long (ordinary) registers are.  */
 
index bc6785bd6ec813f01bb565f08da460feb77f4939..1ebc893a9b987d13ab83bd7ddec6cc3275d7b7cd 100644 (file)
@@ -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;
This page took 0.028607 seconds and 4 git commands to generate.