1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file armthumb.c 4/// \brief Filter for ARM-Thumb binaries 5/// 6// Authors: Igor Pavlov 7// Lasse Collin 8// 9// This file has been put into the public domain. 10// You can do whatever you want with this file. 11// 12/////////////////////////////////////////////////////////////////////////////// 13 14#include "simple_private.h" 15 16 17static size_t
| 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file armthumb.c 4/// \brief Filter for ARM-Thumb binaries 5/// 6// Authors: Igor Pavlov 7// Lasse Collin 8// 9// This file has been put into the public domain. 10// You can do whatever you want with this file. 11// 12/////////////////////////////////////////////////////////////////////////////// 13 14#include "simple_private.h" 15 16 17static size_t
|
18armthumb_code(lzma_simple *simple lzma_attribute((unused)),
| 18armthumb_code(lzma_simple *simple lzma_attribute((__unused__)),
|
19 uint32_t now_pos, bool is_encoder, 20 uint8_t *buffer, size_t size) 21{ 22 size_t i; 23 for (i = 0; i + 4 <= size; i += 2) { 24 if ((buffer[i + 1] & 0xF8) == 0xF0 25 && (buffer[i + 3] & 0xF8) == 0xF8) { 26 uint32_t src = ((buffer[i + 1] & 0x7) << 19)
--- 48 unchanged lines hidden --- | 19 uint32_t now_pos, bool is_encoder, 20 uint8_t *buffer, size_t size) 21{ 22 size_t i; 23 for (i = 0; i + 4 <= size; i += 2) { 24 if ((buffer[i + 1] & 0xF8) == 0xF0 25 && (buffer[i + 3] & 0xF8) == 0xF8) { 26 uint32_t src = ((buffer[i + 1] & 0x7) << 19)
--- 48 unchanged lines hidden --- |