Index: include/core/SkTypes.h |
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h |
index 4d590c24de0eaf7f96935d72b3cde6e8a6bdac40..bdd2e930ae61cc2d50e20b06dbb2461dad12ffee 100644 |
--- a/include/core/SkTypes.h |
+++ b/include/core/SkTypes.h |
@@ -300,6 +300,9 @@ static inline bool SkIsU16(long x) { |
#define SkAlign8(x) (((x) + 7) >> 3 << 3) |
#define SkIsAlign8(x) (0 == ((x) & 7)) |
+#define SkAlignPtr(x) (sizeof(void*) == 8 ? SkAlign8(x) : SkAlign4(x)) |
+#define SkIsAlignPtr(x) (sizeof(void*) == 8 ? SkIsAlign8(x) : SkIsAlign4(x)) |
+ |
typedef uint32_t SkFourByteTag; |
#define SkSetFourByteTag(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) |