diff mbox

MicroBlaze port

Message ID 4CA50B29.6040307@eagerm.com
State New
Headers show

Commit Message

Michael Eager Sept. 30, 2010, 10:11 p.m. UTC
Steve Ellcey wrote:
> Michael,
> 
> My platform doesn't have FLOAT_MIN or FLOAT_MAX,  aren't the C/C++
> standard names FLT_MIN and FLT_MAX?

The standard names are __FLT_MIN__ and __FLT_MAX__.   Also removed
test functions which are not defined.


Checking in as obvious.
diff mbox

Patch

Index: cmpsf-1.c
===================================================================
--- cmpsf-1.c   (revision 164756)
+++ cmpsf-1.c   (working copy)
@@ -56,8 +56,8 @@ 
    0.0F,
    1.0F,
    -1.0F,
-  FLOAT_MAX,
-  FLOAT_MIN,
+  __FLT_MAX__,
+  __FLT_MIN__,
    0.0000000000001F,
    123456789.0F,
    -987654321.0F
@@ -155,14 +155,6 @@ 
             abort ();
           if (fle (arg0, arg1) != *res++)
             abort ();
-         if (fltu (arg0, arg1) != *res++)
-           abort ();
-         if (fgeu (arg0, arg1) != *res++)
-           abort ();
-         if (fgtu (arg0, arg1) != *res++)
-           abort ();
-         if (fleu (arg0, arg1) != *res++)
-           abort ();
         }
      }
    exit (0);