OLD | NEW |
1 /////////////////////////////////////////////////////////////////////////////// | 1 /////////////////////////////////////////////////////////////////////////////// |
2 // | 2 // |
3 /// \file ia64.c | 3 /// \file ia64.c |
4 /// \brief Filter for IA64 (Itanium) binaries | 4 /// \brief Filter for IA64 (Itanium) binaries |
5 /// | 5 /// |
6 // Authors: Igor Pavlov | 6 // Authors: Igor Pavlov |
7 // Lasse Collin | 7 // Lasse Collin |
8 // | 8 // |
9 // This file has been put into the public domain. | 9 // This file has been put into the public domain. |
10 // You can do whatever you want with this file. | 10 // You can do whatever you want with this file. |
11 // | 11 // |
12 /////////////////////////////////////////////////////////////////////////////// | 12 /////////////////////////////////////////////////////////////////////////////// |
13 | 13 |
14 #include "simple_private.h" | 14 #include "simple_private.h" |
15 | 15 |
16 | 16 |
17 static size_t | 17 static size_t |
18 ia64_code(lzma_simple *simple lzma_attribute((unused)), | 18 ia64_code(lzma_simple *simple lzma_attribute((__unused__)), |
19 uint32_t now_pos, bool is_encoder, | 19 uint32_t now_pos, bool is_encoder, |
20 uint8_t *buffer, size_t size) | 20 uint8_t *buffer, size_t size) |
21 { | 21 { |
22 static const uint32_t BRANCH_TABLE[32] = { | 22 static const uint32_t BRANCH_TABLE[32] = { |
23 0, 0, 0, 0, 0, 0, 0, 0, | 23 0, 0, 0, 0, 0, 0, 0, 0, |
24 0, 0, 0, 0, 0, 0, 0, 0, | 24 0, 0, 0, 0, 0, 0, 0, 0, |
25 4, 4, 6, 6, 0, 0, 7, 7, | 25 4, 4, 6, 6, 0, 0, 7, 7, |
26 4, 4, 0, 0, 4, 4, 0, 0 | 26 4, 4, 0, 0, 4, 4, 0, 0 |
27 }; | 27 }; |
28 | 28 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 return ia64_coder_init(next, allocator, filters, true); | 101 return ia64_coder_init(next, allocator, filters, true); |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 extern lzma_ret | 105 extern lzma_ret |
106 lzma_simple_ia64_decoder_init(lzma_next_coder *next, | 106 lzma_simple_ia64_decoder_init(lzma_next_coder *next, |
107 lzma_allocator *allocator, const lzma_filter_info *filters) | 107 lzma_allocator *allocator, const lzma_filter_info *filters) |
108 { | 108 { |
109 return ia64_coder_init(next, allocator, filters, false); | 109 return ia64_coder_init(next, allocator, filters, false); |
110 } | 110 } |
OLD | NEW |