Last change
on this file was 99404, checked in by vboxsync, 22 months ago |
Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
844 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 *
|
---|
18 | __memcpy (
|
---|
19 | void *dest,
|
---|
20 | const void *src,
|
---|
21 | unsigned int count
|
---|
22 | )
|
---|
23 | {
|
---|
24 | return CopyMem (dest, src, (UINTN)count);
|
---|
25 | }
|
---|
26 |
|
---|
27 | __attribute__ ((__alias__ ("__memcpy")))
|
---|
28 | void *
|
---|
29 | memcpy (
|
---|
30 | void *dest,
|
---|
31 | const void *src,
|
---|
32 | unsigned int count
|
---|
33 | );
|
---|
34 |
|
---|
35 | #else
|
---|
36 | /* Copies bytes between buffers */
|
---|
37 | void *
|
---|
38 | memcpy (
|
---|
39 | void *dest,
|
---|
40 | const void *src,
|
---|
41 | unsigned int count
|
---|
42 | )
|
---|
43 | {
|
---|
44 | return CopyMem (dest, src, (UINTN)count);
|
---|
45 | }
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.