| x86.c | x86.c | |||
|---|---|---|---|---|
| skipping to change at line 122 | skipping to change at line 122 | |||
| } | } | |||
| } | } | |||
| simple->prev_mask = prev_mask; | simple->prev_mask = prev_mask; | |||
| simple->prev_pos = prev_pos; | simple->prev_pos = prev_pos; | |||
| return buffer_pos; | return buffer_pos; | |||
| } | } | |||
| static lzma_ret | static lzma_ret | |||
| x86_coder_init(lzma_next_coder *next, lzma_allocator *allocator, | x86_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, | |||
| const lzma_filter_info *filters, bool is_encoder) | const lzma_filter_info *filters, bool is_encoder) | |||
| { | { | |||
| const lzma_ret ret = lzma_simple_coder_init(next, allocator, filters , | const lzma_ret ret = lzma_simple_coder_init(next, allocator, filters , | |||
| &x86_code, sizeof(lzma_simple), 5, 1, is_encoder); | &x86_code, sizeof(lzma_simple), 5, 1, is_encoder); | |||
| if (ret == LZMA_OK) { | if (ret == LZMA_OK) { | |||
| next->coder->simple->prev_mask = 0; | next->coder->simple->prev_mask = 0; | |||
| next->coder->simple->prev_pos = (uint32_t)(-5); | next->coder->simple->prev_pos = (uint32_t)(-5); | |||
| } | } | |||
| return ret; | return ret; | |||
| } | } | |||
| extern lzma_ret | extern lzma_ret | |||
| lzma_simple_x86_encoder_init(lzma_next_coder *next, lzma_allocator *allocat | lzma_simple_x86_encoder_init(lzma_next_coder *next, | |||
| or, | const lzma_allocator *allocator, | |||
| const lzma_filter_info *filters) | const lzma_filter_info *filters) | |||
| { | { | |||
| return x86_coder_init(next, allocator, filters, true); | return x86_coder_init(next, allocator, filters, true); | |||
| } | } | |||
| extern lzma_ret | extern lzma_ret | |||
| lzma_simple_x86_decoder_init(lzma_next_coder *next, lzma_allocator *allocat | lzma_simple_x86_decoder_init(lzma_next_coder *next, | |||
| or, | const lzma_allocator *allocator, | |||
| const lzma_filter_info *filters) | const lzma_filter_info *filters) | |||
| { | { | |||
| return x86_coder_init(next, allocator, filters, false); | return x86_coder_init(next, allocator, filters, false); | |||
| } | } | |||
| End of changes. 3 change blocks. | ||||
| 5 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||