summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2025-04-17 18:44:09 +0200
committerAnsariel <ansariel.hiller@phoenixviewer.com>2025-04-17 18:44:09 +0200
commitd65de99052d5ff08c7c4290a1f1b8e396105b8af (patch)
tree408a694dffae3592fd873dee8de789a163907283 /indra/llmath
parent293462d8ff6dcb00ec501d026a6589d869a2f846 (diff)
Use standard library functions for llisnan and replace obvious NaN checks that don't work using /fp:fast floating point behavior under MSVC
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llmath.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/indra/llmath/llmath.h b/indra/llmath/llmath.h
index fa315291a3..c0f5b3dbf3 100644
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -39,18 +39,8 @@
// llcommon depend on llmath.
#include "is_approx_equal_fraction.h"
-// work around for Windows & older gcc non-standard function names.
-#if LL_WINDOWS
-#include <float.h>
-#define llisnan(val) _isnan(val)
-#define llfinite(val) _finite(val)
-#elif (LL_LINUX && __GNUC__ <= 2)
-#define llisnan(val) isnan(val)
-#define llfinite(val) isfinite(val)
-#else
-#define llisnan(val) std::isnan(val)
-#define llfinite(val) std::isfinite(val)
-#endif
+#define llisnan(val) std::isnan(val)
+#define llfinite(val) std::isfinite(val)
// Single Precision Floating Point Routines
// (There used to be more defined here, but they appeared to be redundant and