Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: tests/Float16Test.cpp

Issue 2488523003: Make SkSmallAllocator obey the RAII invariants and be expandable (Closed)
Patch Set: fix includes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];

Powered by Google App Engine
This is Rietveld 408576698