From f834f25794cfb746079e92d58c7410b767c57208 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 14 Jan 2021 15:48:54 -0800 Subject: COM-ify all slang-gfx interfaces. (#1656) * COM-ify all slang-gfx interfaces. --- source/core/slang-math.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'source/core') 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 +#include 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) -- cgit v1.2.3