summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-08-09 16:14:19 -0700
committerRichard Linden <none@none>2013-08-09 16:14:19 -0700
commit8d3daa141e9ea14f533559843d77ab5c0f715421 (patch)
tree6cada1f722a2965e12ff2a565d1cc1af2768b416 /indra/llmath
parentf7d90f8bb9885dc05cdaf1a6ececd4261e8dda92 (diff)
SH-4374 FIX Interesting: Statistics Object cache hit rate is always 100%
moved object cache sampling code so that it actually gets executed default values for stats are NaN instead of 0 in many cases
Diffstat (limited to 'indra/llmath')
-rwxr-xr-xindra/llmath/llmath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llmath/llmath.h b/indra/llmath/llmath.h
index eeb5cd3ee6..2f83836501 100755
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -83,6 +83,10 @@ const F32 OO_LN2 = 1.4426950408889634073599246810019f;
const F32 F_ALMOST_ZERO = 0.0001f;
const F32 F_ALMOST_ONE = 1.0f - F_ALMOST_ZERO;
+const F64 NaN = std::numeric_limits<double>::quiet_NaN();
+const F64 INFINITY = std::numeric_limits<double>::infinity();
+const F64 MINUS_INFINITY = std::numeric_limits<double>::infinity() * -1.0;
+
// BUG: Eliminate in favor of F_APPROXIMATELY_ZERO above?
const F32 FP_MAG_THRESHOLD = 0.0000001f;