summaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 20:54:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 20:54:54 +0000
commit3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf (patch)
treeea3c3db1efdd618bf819f97d73f93f276f309137 /archival/libunarchive
parentfdcbc4e7095c225a8586dcb96a7a99c2d1007aeb (diff)
downloadbusybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.tar.gz
busybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.tar.bz2
busybox-w32-3ad5d0cbbe3c6debc8d3431fadf973eff04b27bf.zip
diff: shrink code (-85 bytes):
function old new delta fiddle_sum 8 - -8 diffreg 2717 2690 -27 prepare 334 284 -50 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-85) Total: -85 bytes s/ATTRIBUTE_ALWAYS_INLINE/ALWAYS_INLINE/g
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/decompress_unlzma.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c
index 907e44e94..2800a7ecd 100644
--- a/archival/libunarchive/decompress_unlzma.c
+++ b/archival/libunarchive/decompress_unlzma.c
@@ -13,7 +13,7 @@
13#include "unarchive.h" 13#include "unarchive.h"
14 14
15#ifdef CONFIG_FEATURE_LZMA_FAST 15#ifdef CONFIG_FEATURE_LZMA_FAST
16# define speed_inline ATTRIBUTE_ALWAYS_INLINE 16# define speed_inline ALWAYS_INLINE
17#else 17#else
18# define speed_inline 18# define speed_inline
19#endif 19#endif
@@ -78,7 +78,7 @@ static rc_t* rc_init(int fd) /*, int buffer_size) */
78} 78}
79 79
80/* Called once */ 80/* Called once */
81static ATTRIBUTE_ALWAYS_INLINE void rc_free(rc_t * rc) 81static ALWAYS_INLINE void rc_free(rc_t * rc)
82{ 82{
83 if (ENABLE_FEATURE_CLEAN_UP) 83 if (ENABLE_FEATURE_CLEAN_UP)
84 free(rc); 84 free(rc);
@@ -92,7 +92,7 @@ static void rc_do_normalize(rc_t * rc)
92 rc->range <<= 8; 92 rc->range <<= 8;
93 rc->code = (rc->code << 8) | *rc->ptr++; 93 rc->code = (rc->code << 8) | *rc->ptr++;
94} 94}
95static ATTRIBUTE_ALWAYS_INLINE void rc_normalize(rc_t * rc) 95static ALWAYS_INLINE void rc_normalize(rc_t * rc)
96{ 96{
97 if (rc->range < (1 << RC_TOP_BITS)) { 97 if (rc->range < (1 << RC_TOP_BITS)) {
98 rc_do_normalize(rc); 98 rc_do_normalize(rc);
@@ -109,7 +109,7 @@ static speed_inline uint32_t rc_is_bit_0_helper(rc_t * rc, uint16_t * p)
109 rc->bound = *p * (rc->range >> RC_MODEL_TOTAL_BITS); 109 rc->bound = *p * (rc->range >> RC_MODEL_TOTAL_BITS);
110 return rc->bound; 110 return rc->bound;
111} 111}
112static ATTRIBUTE_ALWAYS_INLINE int rc_is_bit_0(rc_t * rc, uint16_t * p) 112static ALWAYS_INLINE int rc_is_bit_0(rc_t * rc, uint16_t * p)
113{ 113{
114 uint32_t t = rc_is_bit_0_helper(rc, p); 114 uint32_t t = rc_is_bit_0_helper(rc, p);
115 return rc->code < t; 115 return rc->code < t;
@@ -143,7 +143,7 @@ static int rc_get_bit(rc_t * rc, uint16_t * p, int *symbol)
143} 143}
144 144
145/* Called once */ 145/* Called once */
146static ATTRIBUTE_ALWAYS_INLINE int rc_direct_bit(rc_t * rc) 146static ALWAYS_INLINE int rc_direct_bit(rc_t * rc)
147{ 147{
148 rc_normalize(rc); 148 rc_normalize(rc);
149 rc->range >>= 1; 149 rc->range >>= 1;