summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-math.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/core/slang-math.h b/source/core/slang-math.h
index 2378b73a0..3d229ded8 100644
--- a/source/core/slang-math.h
+++ b/source/core/slang-math.h
@@ -1,7 +1,7 @@
#ifndef SLANG_CORE_MATH_H
#define SLANG_CORE_MATH_H
-#include <math.h>
+#include <cmath>
namespace Slang
{
@@ -82,16 +82,12 @@ namespace Slang
static inline int IsNaN(float x)
{
-#ifdef _M_X64
- return _isnanf(x);
-#else
- return isnan(x);
-#endif
+ return std::isnan(x);
}
static inline int IsInf(float x)
{
- return isinf(x);
+ return std::isinf(x);
}
static inline unsigned int Ones32(unsigned int x)