Index: include/core/SkMath.h |
diff --git a/include/core/SkMath.h b/include/core/SkMath.h |
index 8276c5d04f1a89062e990c46174ca6aa1c22030d..6e252306df072fee76024a186bab921aa6e17941 100644 |
--- a/include/core/SkMath.h |
+++ b/include/core/SkMath.h |
@@ -90,7 +90,7 @@ static inline int SkClampMax(int value, int max) { |
* Returns true if value is a power of 2. Does not explicitly check for |
* value <= 0. |
*/ |
-template <typename T> inline bool SkIsPow2(T value) { |
+template <typename T> constexpr inline bool SkIsPow2(T value) { |
return (value & (value - 1)) == 0; |
} |