]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/IntrinsicLib/CopyMem.c
ArmVirtPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / IntrinsicLib / CopyMem.c
CommitLineData
97f98500
HT
1/** @file\r
2 Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based\r
3 Cryptographic Library.\r
4\r
5Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
2009f6b4 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
97f98500
HT
7\r
8**/\r
9\r
10#include <Base.h>\r
11#include <Library/BaseMemoryLib.h>\r
12\r
98d8f194
XL
13#if defined(__clang__) && !defined(__APPLE__)\r
14\r
15/* Copies bytes between buffers */\r
16static __attribute__((__used__))\r
17void * __memcpy (void *dest, const void *src, unsigned int count)\r
18{\r
19 return CopyMem (dest, src, (UINTN)count);\r
20}\r
21__attribute__((__alias__("__memcpy")))\r
22void * memcpy (void *dest, const void *src, unsigned int count);\r
23\r
24#else\r
97f98500
HT
25/* Copies bytes between buffers */\r
26void * memcpy (void *dest, const void *src, unsigned int count)\r
27{\r
28 return CopyMem (dest, src, (UINTN)count);\r
29}\r
98d8f194 30#endif\r