[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / string / memory_utils / bzero_implementations.h
blob02780d7859a73413b0f50f93e1772a5cf22ae3a3
1 //===-- Implementation of bzero -------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_BZERO_IMPLEMENTATIONS_H
10 #define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_BZERO_IMPLEMENTATIONS_H
12 #include "src/__support/common.h"
13 #include "src/string/memory_utils/memset_implementations.h"
15 #include <stddef.h> // size_t
17 namespace __llvm_libc {
19 LIBC_INLINE static void inline_bzero(Ptr dst, size_t count) {
20 inline_memset(dst, 0, count);
23 LIBC_INLINE static void inline_bzero(void *dst, size_t count) {
24 inline_bzero(reinterpret_cast<Ptr>(dst), count);
27 } // namespace __llvm_libc
29 #endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_BZERO_IMPLEMENTATIONS_H