]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/IntrinsicLib/CopyMem.c
2 Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based
5 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Library/BaseMemoryLib.h>
13 #if defined(__clang__) && !defined(__APPLE__)
15 /* Copies bytes between buffers */
16 static __attribute__((__used__
))
17 void * __memcpy (void *dest
, const void *src
, unsigned int count
)
19 return CopyMem (dest
, src
, (UINTN
)count
);
21 __attribute__((__alias__("__memcpy")))
22 void * memcpy (void *dest
, const void *src
, unsigned int count
);
25 /* Copies bytes between buffers */
26 void * memcpy (void *dest
, const void *src
, unsigned int count
)
28 return CopyMem (dest
, src
, (UINTN
)count
);