OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
lzss.h
Go to the documentation of this file.
1
15#ifndef LZSS_H
16#define LZSS_H
17
18#include <Library/BaseMemoryLib.h>
19#include <Library/MemoryAllocationLib.h>
21
22#define compress_lzss CompressLZSS
23#define decompress_lzss DecompressLZSS
24
25#ifdef EFIUSER
26#include <stdint.h>
27#include <stddef.h>
28#include <string.h>
29#include <stdlib.h>
30#else
31
32typedef INT8 int8_t;
33typedef INT16 int16_t;
34typedef INT32 int32_t;
35
36#ifdef memset
37#undef memset
38#endif
39
40#ifdef malloc
41#undef malloc
42#endif
43
44#ifdef free
45#undef free
46#endif
47
48#define memset(Dst, Val, Size) SetMem ((Dst), (Size), (Val))
49#define malloc(Size) AllocatePool (Size)
50#define free(Ptr) FreePool (Ptr)
51#endif
52
53typedef UINT8 u_int8_t;
54typedef UINT16 u_int16_t;
55typedef UINT32 u_int32_t;
56
57#ifdef bzero
58#undef bzero
59#endif
60#define bzero(Dst, Size) ZeroMem ((Dst), (Size))
61
62#endif // LZSS_H
UINT16 u_int16_t
Definition lzss.h:54
UINT32 u_int32_t
Definition lzss.h:55
INT8 int8_t
Definition lzss.h:32
UINT8 u_int8_t
Definition lzss.h:53
INT32 int32_t
Definition lzss.h:34
INT16 int16_t
Definition lzss.h:33