change std::isnan() to a using namespace std and isnan(). We need a better way to...
authorAli Saidi <saidi@eecs.umich.edu>
Tue, 30 Jan 2007 19:43:25 +0000 (14:43 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Tue, 30 Jan 2007 19:43:25 +0000 (14:43 -0500)
--HG--
extra : convert_revision : 4f59ca8e6425db23f57a1f3f65a4874e483d0ecc

src/arch/sparc/isa/decoder.isa
src/arch/sparc/isa/includes.isa

index ebd19720eb619573df416ea3d9c8ad5f7d8b8cfc..2152d3d2b6c1325da1755d112b3ea3e1ae143c28 100644 (file)
@@ -738,7 +738,7 @@ decode OP default Unknown::unknown()
                 format BasicOperate{
                     0x51: fcmps({{
                           uint8_t fcc;
-                          if(std::isnan(Frs1s) || std::isnan(Frs2s))
+                          if(isnan(Frs1s) || isnan(Frs2s))
                               fcc = 3;
                           else if(Frs1s < Frs2s)
                               fcc = 1;
@@ -753,7 +753,7 @@ decode OP default Unknown::unknown()
                     }});
                     0x52: fcmpd({{
                           uint8_t fcc;
-                          if(std::isnan(Frs1s) || std::isnan(Frs2s))
+                          if(isnan(Frs1s) || isnan(Frs2s))
                               fcc = 3;
                           else if(Frs1s < Frs2s)
                               fcc = 1;
@@ -769,7 +769,7 @@ decode OP default Unknown::unknown()
                     0x53: FpUnimpl::fcmpq();
                     0x55: fcmpes({{
                           uint8_t fcc = 0;
-                          if(std::isnan(Frs1s) || std::isnan(Frs2s))
+                          if(isnan(Frs1s) || isnan(Frs2s))
                               fault = new FpExceptionIEEE754;
                           if(Frs1s < Frs2s)
                               fcc = 1;
@@ -782,7 +782,7 @@ decode OP default Unknown::unknown()
                     }});
                     0x56: fcmped({{
                           uint8_t fcc = 0;
-                          if(std::isnan(Frs1s) || std::isnan(Frs2s))
+                          if(isnan(Frs1s) || isnan(Frs2s))
                               fault = new FpExceptionIEEE754;
                           if(Frs1s < Frs2s)
                               fcc = 1;
index 474af3ad964b22eb2519bd61385d58b99035beaf..a6dca9bf136ae2603eae3ee92bc34ad2903118f5 100644 (file)
@@ -76,5 +76,6 @@ output exec {{
 #include "mem/packet_access.hh"
 
 using namespace SparcISA;
+using namespace std;
 }};