OLD | NEW |
1 /* Bra.h -- Branch converters for executables | 1 /* Bra.h -- Branch converters for executables |
2 2009-02-07 : Igor Pavlov : Public domain */ | 2 2013-01-18 : Igor Pavlov : Public domain */ |
3 | 3 |
4 #ifndef __BRA_H | 4 #ifndef __BRA_H |
5 #define __BRA_H | 5 #define __BRA_H |
6 | 6 |
7 #include "Types.h" | 7 #include "7zTypes.h" |
8 | 8 |
9 #ifdef __cplusplus | 9 EXTERN_C_BEGIN |
10 extern "C" { | |
11 #endif | |
12 | 10 |
13 /* | 11 /* |
14 These functions convert relative addresses to absolute addresses | 12 These functions convert relative addresses to absolute addresses |
15 in CALL instructions to increase the compression ratio. | 13 in CALL instructions to increase the compression ratio. |
16 | 14 |
17 In: | 15 In: |
18 data - data buffer | 16 data - data buffer |
19 size - size of data | 17 size - size of data |
20 ip - current virtual Instruction Pinter (IP) value | 18 ip - current virtual Instruction Pinter (IP) value |
21 state - state variable for x86 converter | 19 state - state variable for x86 converter |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 */ | 52 */ |
55 | 53 |
56 #define x86_Convert_Init(state) { state = 0; } | 54 #define x86_Convert_Init(state) { state = 0; } |
57 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding
); | 55 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding
); |
58 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); | 56 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); |
59 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); | 57 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); |
60 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); | 58 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); |
61 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); | 59 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); |
62 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); | 60 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding); |
63 | 61 |
64 #ifdef __cplusplus | 62 EXTERN_C_END |
65 } | |
66 #endif | |
67 | 63 |
68 #endif | 64 #endif |
OLD | NEW |