blob: ba93305b4ac62ef47f4c997cd2f114c0c3827d96 [file] [log] [blame]
Mike Klein87db0012017-05-23 12:20:38 -04001/*
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
Hal Canary466c7d62017-07-03 15:11:49 -040011#include "stdint.h"
12
Mike Klein87db0012017-05-23 12:20:38 -040013namespace SK_OPTS_NS {
14
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 }
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 }
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