Last change
on this file since 85754 was 80721, checked in by vboxsync, 5 years ago |
Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
768 bytes
|
Line | |
---|
1 | /** @file
|
---|
2 | Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based
|
---|
3 | Cryptographic Library.
|
---|
4 |
|
---|
5 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #include <Base.h>
|
---|
11 | #include <Library/BaseMemoryLib.h>
|
---|
12 |
|
---|
13 | #if defined(__clang__) && !defined(__APPLE__)
|
---|
14 |
|
---|
15 | /* Copies bytes between buffers */
|
---|
16 | static __attribute__((__used__))
|
---|
17 | void * __memcpy (void *dest, const void *src, unsigned int count)
|
---|
18 | {
|
---|
19 | return CopyMem (dest, src, (UINTN)count);
|
---|
20 | }
|
---|
21 | __attribute__((__alias__("__memcpy")))
|
---|
22 | void * memcpy (void *dest, const void *src, unsigned int count);
|
---|
23 |
|
---|
24 | #else
|
---|
25 | /* Copies bytes between buffers */
|
---|
26 | void * memcpy (void *dest, const void *src, unsigned int count)
|
---|
27 | {
|
---|
28 | return CopyMem (dest, src, (UINTN)count);
|
---|
29 | }
|
---|
30 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.