]>
Commit | Line | Data |
---|---|---|
58802e02 SZ |
1 | /** @file\r |
2 | BROTLI UEFI header file for definitions\r | |
3 | \r | |
4 | Allows BROTLI code to build under UEFI (edk2) build environment\r | |
5 | \r | |
6 | Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r | |
7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | \r | |
9 | **/\r | |
10 | \r | |
11 | #ifndef __BROTLI_DECOMPRESS_UEFI_SUP_H__\r | |
12 | #define __BROTLI_DECOMPRESS_UEFI_SUP_H__\r | |
13 | \r | |
14 | #include <Library/BaseLib.h>\r | |
15 | #include <Library/BaseMemoryLib.h>\r | |
16 | #include <Library/DebugLib.h>\r | |
17 | #define memcpy CopyMem\r | |
18 | #define memmove CopyMem\r | |
19 | #define memset(dest,ch,count) SetMem(dest,(UINTN)(count),(UINT8)(ch))\r | |
20 | #define malloc BrDummyMalloc\r | |
21 | #define free BrDummyFree\r | |
22 | \r | |
23 | typedef INT8 int8_t;\r | |
24 | typedef INT16 int16_t;\r | |
25 | typedef INT32 int32_t;\r | |
26 | typedef INT64 int64_t;\r | |
27 | typedef UINT8 uint8_t;\r | |
28 | typedef UINT16 uint16_t;\r | |
29 | typedef UINT32 uint32_t;\r | |
30 | typedef UINT64 uint64_t;\r | |
31 | typedef UINTN size_t;\r | |
32 | \r | |
33 | VOID *\r | |
34 | BrDummyMalloc (\r | |
35 | IN size_t Size\r | |
36 | );\r | |
37 | \r | |
38 | VOID\r | |
39 | BrDummyFree (\r | |
40 | IN VOID * Ptr\r | |
41 | );\r | |
42 | \r | |
43 | #endif\r |