Module Name:    xsrc
Committed By:   christos
Date:           Fri Dec 19 18:33:02 UTC 2014

Modified Files:
        xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util: u_math.h

Log Message:
Use FLT_MAX if possible (fix VAX)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 \
    xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h
diff -u xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h:1.1.1.4 xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h:1.2
--- xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h:1.1.1.4	Thu Dec 18 01:02:06 2014
+++ xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h	Fri Dec 19 13:33:02 2014
@@ -263,8 +263,11 @@ util_fast_exp2(float x)
    float fpart, mpart;
    union fi epart;
 
-   if(x > 129.00000f)
-      return 3.402823466e+38f;
+#ifndef FLT_MAX
+#define FLT_MAX ((float)3.40282346638528860e+38)
+#endif
+   if (x > 129.00000f)
+      return FLT_MAX;
 
    if (x < -126.99999f)
       return 0.0f;

Reply via email to