1c8f79892SGuillaume Chatelet //===-- Implementation of bcmp --------------------------------------------===//
2c8f79892SGuillaume Chatelet //
3c8f79892SGuillaume Chatelet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4c8f79892SGuillaume Chatelet // See https://llvm.org/LICENSE.txt for license information.
5c8f79892SGuillaume Chatelet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6c8f79892SGuillaume Chatelet //
7c8f79892SGuillaume Chatelet //===----------------------------------------------------------------------===//
8c8f79892SGuillaume Chatelet 
9c8f79892SGuillaume Chatelet #include "src/string/bcmp.h"
10c8f79892SGuillaume Chatelet #include "src/__support/common.h"
11*af059dfeSGuillaume Chatelet #include "src/string/memory_utils/bcmp_implementations.h"
12c8f79892SGuillaume Chatelet 
13c8f79892SGuillaume Chatelet namespace __llvm_libc {
14c8f79892SGuillaume Chatelet 
15c8f79892SGuillaume Chatelet LLVM_LIBC_FUNCTION(int, bcmp,
16c8f79892SGuillaume Chatelet                    (const void *lhs, const void *rhs, size_t count)) {
17*af059dfeSGuillaume Chatelet   return inline_bcmp(static_cast<const char *>(lhs),
18*af059dfeSGuillaume Chatelet                      static_cast<const char *>(rhs), count);
19c8f79892SGuillaume Chatelet }
20c8f79892SGuillaume Chatelet 
21c8f79892SGuillaume Chatelet } // namespace __llvm_libc
22