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/compiler/nir Provide a bogus...



details:   https://anonhg.NetBSD.org/xsrc/rev/e9be09365c15
branches:  trunk
changeset: 10396:e9be09365c15
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Sep 24 19:45:13 2019 +0000

description:
Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.

diffstat:

 external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r ab364c787141 -r e9be09365c15 external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h
--- a/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h  Tue Sep 24 19:26:24 2019 +0000
+++ b/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h  Tue Sep 24 19:45:13 2019 +0000
@@ -179,6 +179,10 @@
    return nir_bcsel(b, condy, y, nir_bcsel(b, condx, x, nir_fmin(b, x, y)));
 }
 
+#ifdef __vax__
+#define NAN FLT_MAX
+#endif
+
 static inline nir_ssa_def*
 nir_nan(nir_builder *b, nir_ssa_def *x)
 {



Home | Main Index | Thread Index | Old Index