Deleted Added
full compact
powerpc.c (213700) powerpc.c (223935)
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file powerpc.c
4/// \brief Filter for PowerPC (big endian) 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 powerpc.c
4/// \brief Filter for PowerPC (big endian) 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
18powerpc_code(lzma_simple *simple lzma_attribute((unused)),
18powerpc_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 += 4) {
24 // PowerPC branch 6(48) 24(Offset) 1(Abs) 1(Link)
25 if ((buffer[i] >> 2) == 0x12
26 && ((buffer[i + 3] & 3) == 1)) {

--- 47 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 += 4) {
24 // PowerPC branch 6(48) 24(Offset) 1(Abs) 1(Link)
25 if ((buffer[i] >> 2) == 0x12
26 && ((buffer[i + 3] & 3) == 1)) {

--- 47 unchanged lines hidden ---