| Index: include/core/SkTypes.h
|
| diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
|
| index e4569f21b1c5a2e6e316c5549ba4ed98420386e3..261fcaea4210893cbedb8a61076b4358b5e5400e 100644
|
| --- a/include/core/SkTypes.h
|
| +++ b/include/core/SkTypes.h
|
| @@ -306,6 +306,14 @@ static inline bool SkIsU16(long x) {
|
| return (uint16_t)x == x;
|
| }
|
|
|
| +static inline int32_t SkLeftShift(int32_t value, int32_t shift) {
|
| + return (int32_t) ((uint32_t) value << shift);
|
| +}
|
| +
|
| +static inline int64_t SkLeftShift(int64_t value, int32_t shift) {
|
| + return (int64_t) ((uint64_t) value << shift);
|
| +}
|
| +
|
| //////////////////////////////////////////////////////////////////////////////
|
|
|
| /** Returns the number of entries in an array (not a pointer) */
|
|
|