From f68e69315863b5b8b46d4562ce600bcab4613035 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 11 Jun 1993 18:33:12 +0000 Subject: [PATCH] * mips-tdep.c (isa_NAN): Don't return true on -0. --- gdb/mips-tdep.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index a853cd6f7cc..b86fea90cd6 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -26,33 +26,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "value.h" #include "gdbcmd.h" #include "language.h" - -#ifdef USG -#include -#endif - -#include -#include -#include - #include "gdbcore.h" #include "symfile.h" #include "objfiles.h" -#ifndef MIPSMAGIC -#ifdef MIPSEL -#define MIPSMAGIC MIPSELMAGIC -#else -#define MIPSMAGIC MIPSEBMAGIC -#endif -#endif - #define VM_MIN_ADDRESS (unsigned)0x400000 - -#include /* After a.out.h */ -#include -#include - /* Some MIPS boards don't support floating point, so we permit the user to turn it off. */ @@ -726,7 +704,7 @@ isa_NAN(p, len) { exponent = *p; exponent = exponent << 1 >> (32 - SINGLE_EXP_BITS - 1); - return ((exponent == -1) || (! exponent && *p)); + return ((exponent == -1) || (exponent == 0 && ((*p << 1) != 0))); } else if (len == 8) { -- 2.30.2