16ca54e01SGuillaume Chatelet //===-- Implementation of bzero -------------------------------------------===//
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/bzero.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, bzero, (void *ptr, size_t count)) {
16*c02aa154SGuillaume Chatelet   inline_memset(reinterpret_cast<char *>(ptr), 0, count);
176ca54e01SGuillaume Chatelet }
186ca54e01SGuillaume Chatelet 
196ca54e01SGuillaume Chatelet } // namespace __llvm_libc
20