diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-28 18:22:01 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-28 18:22:01 +0000 |
commit | 01224d5d0a3228fe47e63d8346e0e433a87563a8 (patch) | |
tree | 0c26fce36c2f958139e0d52c447d19b1f5e052d6 /include/core/SkTypes.h | |
parent | 5e12770cb01d9f6963538223cbfd91d269feee98 (diff) |
Unroll loops in SkBlurMask for speedup on Windows (benchmarks should see
15% on interpolated blurs, 5-10% on simple blurs).
git-svn-id: http://skia.googlecode.com/svn/trunk@2755 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTypes.h')
-rw-r--r-- | include/core/SkTypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 1ee25b129a..51d8d187c7 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -216,6 +216,8 @@ static inline bool SkIsU16(long x) { */ #define SkAlign4(x) (((x) + 3) >> 2 << 2) +#define SkIsAlign4(x) (((x) & 3) == 0) + typedef uint32_t SkFourByteTag; #define SkSetFourByteTag(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) |