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

Unified Diff: src/core/SkFloatBits.cpp

Issue 1203533003: Clarify iOS flush-to-zero status. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use 'defined' for consistency. Created 5 years, 6 months 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
« no previous file with comments | « no previous file | src/core/SkMathPriv.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFloatBits.cpp
diff --git a/src/core/SkFloatBits.cpp b/src/core/SkFloatBits.cpp
index 8d89dfef223a3c3aef9c6ae1993a6fa2a844213e..919fd0610f2205e0706750395fbd2677abfb9db0 100644
--- a/src/core/SkFloatBits.cpp
+++ b/src/core/SkFloatBits.cpp
@@ -85,7 +85,7 @@ int32_t SkFloatBits_toIntFloor(int32_t packed) {
value = SkApplySign(value, SkExtractSign(packed));
exp = -exp;
if (exp > 25) { // underflow
-#ifdef SK_DISCARD_DENORMALIZED_FOR_SPEED
+#ifdef SK_CPU_FLUSH_TO_ZERO
// The iOS ARM processor discards small denormalized numbers to go faster.
// The comparision below empirically causes the result to agree with the
// tests in MathTest test_float_floor
@@ -154,7 +154,7 @@ int32_t SkFloatBits_toIntCeil(int32_t packed) {
value = SkApplySign(value, SkExtractSign(packed));
exp = -exp;
if (exp > 25) { // underflow
-#ifdef SK_DISCARD_DENORMALIZED_FOR_SPEED
+#ifdef SK_CPU_FLUSH_TO_ZERO
// The iOS ARM processor discards small denormalized numbers to go faster.
// The comparision below empirically causes the result to agree with the
// tests in MathTest test_float_ceil
« no previous file with comments | « no previous file | src/core/SkMathPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698