1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkUtils_opts_DEFINED 9 #define SkUtils_opts_DEFINED 10 11 #include "stdint.h" 12 13 namespace SK_OPTS_NS { 14 memset16(uint16_t buffer[],uint16_t value,int count)15 static void memset16(uint16_t buffer[], uint16_t value, int count) { 16 for (int i = 0; i < count; i++) { 17 buffer[i] = value; 18 } 19 } memset32(uint32_t buffer[],uint32_t value,int count)20 static void memset32(uint32_t buffer[], uint32_t value, int count) { 21 for (int i = 0; i < count; i++) { 22 buffer[i] = value; 23 } 24 } memset64(uint64_t buffer[],uint64_t value,int count)25 static void memset64(uint64_t buffer[], uint64_t value, int count) { 26 for (int i = 0; i < count; i++) { 27 buffer[i] = value; 28 } 29 } 30 31 } 32 33 #endif//SkUtils_opts_DEFINED 34