Index: tests/Float16Test.cpp |
diff --git a/tests/Float16Test.cpp b/tests/Float16Test.cpp |
index 99835686fad361289061ac40f06c1978992fe2af..e1c0930b896382c99ade62f1df5f6ec82f275fc9 100644 |
--- a/tests/Float16Test.cpp |
+++ b/tests/Float16Test.cpp |
@@ -6,6 +6,9 @@ |
*/ |
#include "Test.h" |
+ |
+#include <cmath> |
+ |
#include "SkAutoPixmapStorage.h" |
#include "SkColor.h" |
#include "SkHalf.h" |
@@ -100,7 +103,7 @@ DEF_TEST(SkFloatToHalf_finite_ftz, r) { |
uint16_t alternate = expected; |
if (is_denorm(expected)) { |
// _finite_ftz() may flush denorms to zero, and happens to keep the sign bit. |
- alternate = signbit(f) ? 0x8000 : 0x0000; |
+ alternate = std::signbit(f) ? 0x8000 : 0x0000; |
bungeman-skia
2016/11/09 19:30:56
This change seems unrelated?
herb_g
2016/11/09 20:20:05
Removed
|
} |
uint16_t actual = SkFloatToHalf_finite_ftz(Sk4f{f})[0]; |