Index: src/core/SkMathPriv.h |
diff --git a/src/core/SkMathPriv.h b/src/core/SkMathPriv.h |
index 53cf43063d1e230d67146bdb9ae87e9344ccb9ba..4eaad8b9b16fa10fb0ffbc90b2507b43f1781cf1 100644 |
--- a/src/core/SkMathPriv.h |
+++ b/src/core/SkMathPriv.h |
@@ -33,18 +33,10 @@ static inline int32_t SkCopySign32(int32_t x, int32_t y) { |
@return max if value >= max, else value |
*/ |
static inline unsigned SkClampUMax(unsigned value, unsigned max) { |
-#ifdef SK_CPU_HAS_CONDITIONAL_INSTR |
if (value > max) { |
value = max; |
} |
return value; |
-#else |
- int diff = max - value; |
- // clear diff if diff is positive |
- diff &= diff >> 31; |
- |
- return value + diff; |
-#endif |
} |
/** Computes the 64bit product of a * b, and then shifts the answer down by |