| Index: src/core/SkUtils.h
|
| diff --git a/src/core/SkUtils.h b/src/core/SkUtils.h
|
| index 332ea8da7e48ab6b4bcc25d72475c6f0b0c6c807..26f19e6906310cb7456dedb779ae8b2adcf7ff51 100644
|
| --- a/src/core/SkUtils.h
|
| +++ b/src/core/SkUtils.h
|
| @@ -32,6 +32,16 @@ static inline void sk_memset32(uint32_t buffer[], uint32_t value, int count) {
|
| }
|
| }
|
|
|
| +/** Similar to memset(), but it assigns a 64bit value into the buffer.
|
| + @param buffer The memory to have value copied into it
|
| + @param value The 64bit value to be copied into buffer
|
| + @param count The number of times value should be copied into the buffer.
|
| +*/
|
| +static inline void sk_memset64(uint64_t buffer[], uint64_t value, int count) {
|
| + for (int i = 0; i < count; i++) {
|
| + buffer[i] = value;
|
| + }
|
| +}
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| #define kMaxBytesInUTF8Sequence 4
|
|
|