Index: runtime/platform/c99_support_win.h |
=================================================================== |
--- runtime/platform/c99_support_win.h (revision 37827) |
+++ runtime/platform/c99_support_win.h (working copy) |
@@ -13,6 +13,8 @@ |
#include <float.h> |
#include <string.h> |
+#include <cmath> |
+ |
static const unsigned __int64 kQuietNaNMask = |
static_cast<unsigned __int64>(0xfff) << 51; |
@@ -26,6 +28,8 @@ |
#define NAN \ |
*reinterpret_cast<const double*>(&kQuietNaNMask) |
+namespace std { |
+ |
static inline int isinf(double x) { |
return (_fpclass(x) & (_FPCLASS_PINF | _FPCLASS_NINF)) != 0; |
} |
@@ -42,6 +46,8 @@ |
} |
} |
+} // namespace std |
+ |
static inline double trunc(double x) { |
if (x < 0) { |
return ceil(x); |