11ca120588a58236da93fb441d98e36dc913fe561Duane Sand/* 21ca120588a58236da93fb441d98e36dc913fe561Duane Sand * Copyright (C) 2012 The Android Open Source Project 31ca120588a58236da93fb441d98e36dc913fe561Duane Sand * 41ca120588a58236da93fb441d98e36dc913fe561Duane Sand * Licensed under the Apache License, Version 2.0 (the "License"); 51ca120588a58236da93fb441d98e36dc913fe561Duane Sand * you may not use this file except in compliance with the License. 61ca120588a58236da93fb441d98e36dc913fe561Duane Sand * You may obtain a copy of the License at 71ca120588a58236da93fb441d98e36dc913fe561Duane Sand * 81ca120588a58236da93fb441d98e36dc913fe561Duane Sand * http://www.apache.org/licenses/LICENSE-2.0 91ca120588a58236da93fb441d98e36dc913fe561Duane Sand * 101ca120588a58236da93fb441d98e36dc913fe561Duane Sand * Unless required by applicable law or agreed to in writing, software 111ca120588a58236da93fb441d98e36dc913fe561Duane Sand * distributed under the License is distributed on an "AS IS" BASIS, 121ca120588a58236da93fb441d98e36dc913fe561Duane Sand * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131ca120588a58236da93fb441d98e36dc913fe561Duane Sand * See the License for the specific language governing permissions and 141ca120588a58236da93fb441d98e36dc913fe561Duane Sand * limitations under the License. 151ca120588a58236da93fb441d98e36dc913fe561Duane Sand */ 161ca120588a58236da93fb441d98e36dc913fe561Duane Sand 171ca120588a58236da93fb441d98e36dc913fe561Duane Sand#include <cutils/memory.h> 181ca120588a58236da93fb441d98e36dc913fe561Duane Sand 191ca120588a58236da93fb441d98e36dc913fe561Duane Sand/* Use mips-assembler versions supplied by bionic/libc/arch-mips/string/memset.S: */ 201ca120588a58236da93fb441d98e36dc913fe561Duane Sandvoid _memset16(uint16_t* dst, uint16_t value, size_t size); 211ca120588a58236da93fb441d98e36dc913fe561Duane Sandvoid _memset32(uint32_t* dst, uint32_t value, size_t size); 221ca120588a58236da93fb441d98e36dc913fe561Duane Sand 231ca120588a58236da93fb441d98e36dc913fe561Duane Sandvoid android_memset16(uint16_t* dst, uint16_t value, size_t size) 241ca120588a58236da93fb441d98e36dc913fe561Duane Sand{ 251ca120588a58236da93fb441d98e36dc913fe561Duane Sand _memset16(dst, value, size); 261ca120588a58236da93fb441d98e36dc913fe561Duane Sand} 271ca120588a58236da93fb441d98e36dc913fe561Duane Sand 281ca120588a58236da93fb441d98e36dc913fe561Duane Sandvoid android_memset32(uint32_t* dst, uint32_t value, size_t size) 291ca120588a58236da93fb441d98e36dc913fe561Duane Sand{ 301ca120588a58236da93fb441d98e36dc913fe561Duane Sand _memset32(dst, value, size); 311ca120588a58236da93fb441d98e36dc913fe561Duane Sand} 32