Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/MesaLib/dist/src/util Use a name for the larg...



details:   https://anonhg.NetBSD.org/xsrc/rev/8be7dd91f26e
branches:  trunk
changeset: 10260:8be7dd91f26e
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Apr 06 10:00:13 2019 +0000

description:
Use a name for the largest representable float

Actually intended to appease vax which has a floating point format
that doesn't match the same range as IEEE754 float.

(why not exp2f?)

diffstat:

 external/mit/MesaLib/dist/src/util/u_math.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c869ce47c917 -r 8be7dd91f26e external/mit/MesaLib/dist/src/util/u_math.h
--- a/external/mit/MesaLib/dist/src/util/u_math.h       Wed Mar 20 07:17:34 2019 +0000
+++ b/external/mit/MesaLib/dist/src/util/u_math.h       Sat Apr 06 10:00:13 2019 +0000
@@ -117,7 +117,7 @@
    union fi epart;
 
    if(x > 129.00000f)
-      return 3.402823466e+38f;
+      return FLT_MAX;
 
    if (x < -126.99999f)
       return 0.0f;



Home | Main Index | Thread Index | Old Index