Patchwork MicroBlaze port

login
register
mail settings
Submitter Michael Eager
Date Sept. 30, 2010, 10:11 p.m.
Message ID <4CA50B29.6040307@eagerm.com>
Download mbox | patch
Permalink /patch/66282/
State New
Headers show

Comments

Michael Eager - Sept. 30, 2010, 10:11 p.m.
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.

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);