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

Unified Diff: include/core/SkMath.h

Issue 2248693004: SkLiteDL: remove freelisting, add reset() and SKLITEDL_PAGE knob. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/SkGraphics.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | src/core/SkGraphics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698