Maintainers.txt: Update email address
[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
7c342378 13#if defined (__clang__) && !defined (__APPLE__)\r
98d8f194
XL
14\r
15/* Copies bytes between buffers */\r
7c342378
MK
16static __attribute__ ((__used__))\r
17void *\r
18__memcpy (\r
19 void *dest,\r
20 const void *src,\r
21 unsigned int count\r
22 )\r
98d8f194
XL
23{\r
24 return CopyMem (dest, src, (UINTN)count);\r
25}\r
7c342378
MK
26\r
27__attribute__ ((__alias__ ("__memcpy")))\r
28void *\r
29memcpy (\r
30 void *dest,\r
31 const void *src,\r
32 unsigned int count\r
33 );\r
98d8f194
XL
34\r
35#else\r
97f98500 36/* Copies bytes between buffers */\r
7c342378
MK
37void *\r
38memcpy (\r
39 void *dest,\r
40 const void *src,\r
41 unsigned int count\r
42 )\r
97f98500
HT
43{\r
44 return CopyMem (dest, src, (UINTN)count);\r
45}\r
7c342378 46\r
98d8f194 47#endif\r