16ca54e01SGuillaume Chatelet //===-- Implementation of memset ------------------------------------------===// 26ca54e01SGuillaume Chatelet // 36ca54e01SGuillaume Chatelet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 46ca54e01SGuillaume Chatelet // See https://llvm.org/LICENSE.txt for license information. 56ca54e01SGuillaume Chatelet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 66ca54e01SGuillaume Chatelet // 76ca54e01SGuillaume Chatelet //===----------------------------------------------------------------------===// 86ca54e01SGuillaume Chatelet 96ca54e01SGuillaume Chatelet #include "src/string/memset.h" 106ca54e01SGuillaume Chatelet #include "src/__support/common.h" 11*c02aa154SGuillaume Chatelet #include "src/string/memory_utils/memset_implementations.h" 126ca54e01SGuillaume Chatelet 136ca54e01SGuillaume Chatelet namespace __llvm_libc { 146ca54e01SGuillaume Chatelet 15a0b65a7bSMichael Jones LLVM_LIBC_FUNCTION(void *, memset, (void *dst, int value, size_t count)) { 16*c02aa154SGuillaume Chatelet inline_memset(reinterpret_cast<char *>(dst), 176ca54e01SGuillaume Chatelet static_cast<unsigned char>(value), count); 186ca54e01SGuillaume Chatelet return dst; 196ca54e01SGuillaume Chatelet } 206ca54e01SGuillaume Chatelet 216ca54e01SGuillaume Chatelet } // namespace __llvm_libc 22