X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FIntrinsicLib%2FCopyMem.c;fp=CryptoPkg%2FLibrary%2FIntrinsicLib%2FCopyMem.c;h=14a213d1dadf2300d59c5a4b3c7eebebcb709c04;hp=7faf5a34d8c179f63b9121a2dd07e234a31ed59c;hb=7c342378317039e632d9a1a5d4cf7c21aec8cb7a;hpb=2b16a4fb91b9b31c0d152588f5ac51080c6c0763 diff --git a/CryptoPkg/Library/IntrinsicLib/CopyMem.c b/CryptoPkg/Library/IntrinsicLib/CopyMem.c index 7faf5a34d8..14a213d1da 100644 --- a/CryptoPkg/Library/IntrinsicLib/CopyMem.c +++ b/CryptoPkg/Library/IntrinsicLib/CopyMem.c @@ -10,21 +10,38 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include -#if defined(__clang__) && !defined(__APPLE__) +#if defined (__clang__) && !defined (__APPLE__) /* Copies bytes between buffers */ -static __attribute__((__used__)) -void * __memcpy (void *dest, const void *src, unsigned int count) +static __attribute__ ((__used__)) +void * +__memcpy ( + void *dest, + const void *src, + unsigned int count + ) { return CopyMem (dest, src, (UINTN)count); } -__attribute__((__alias__("__memcpy"))) -void * memcpy (void *dest, const void *src, unsigned int count); + +__attribute__ ((__alias__ ("__memcpy"))) +void * +memcpy ( + void *dest, + const void *src, + unsigned int count + ); #else /* Copies bytes between buffers */ -void * memcpy (void *dest, const void *src, unsigned int count) +void * +memcpy ( + void *dest, + const void *src, + unsigned int count + ) { return CopyMem (dest, src, (UINTN)count); } + #endif