diff options
| author | Yong He <yonghe@outlook.com> | 2021-01-14 15:48:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-14 15:48:54 -0800 |
| commit | f834f25794cfb746079e92d58c7410b767c57208 (patch) | |
| tree | 583a86d4cb2e446c2c06f9d786996d10647baf84 /source/core | |
| parent | ac76997690a39605b2b8fbd63de9cbbbc2af2a73 (diff) | |
COM-ify all slang-gfx interfaces. (#1656)
* COM-ify all slang-gfx interfaces.
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-math.h | 10 |
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) |
