[git commit master] *: three more NOINLINEs

Denys Vlasenko vda.linux at googlemail.com
Thu Oct 8 12:54:18 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=ef5bc2c39c8b2dfda3915345f7abb17e1927684d
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
lzo_decompress                                         -     525    +525
lzo_compress                                           -     470    +470
showmode                                               -     330    +330
fbset_main                                          1698    1273    -425
do_lzo_compress                                      799     323    -476
do_lzo_decompress                                   1167     526    -641
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 0/3 up/down: 1325/-1542)       Total: -217 bytes

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 archival/lzop.c    |    4 ++--
 util-linux/fbset.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/archival/lzop.c b/archival/lzop.c
index 5f2744d..46aa2d3 100644
--- a/archival/lzop.c
+++ b/archival/lzop.c
@@ -598,7 +598,7 @@ static int lzo_get_method(header_t *h)
 /**********************************************************************/
 // compress a file
 /**********************************************************************/
-static smallint lzo_compress(const header_t *h)
+static NOINLINE smallint lzo_compress(const header_t *h)
 {
 	unsigned block_size = LZO_BLOCK_SIZE;
 	int r = 0; /* LZO_E_OK */
@@ -706,7 +706,7 @@ static void lzo_check(uint32_t FAST_FUNC (*fn)(uint32_t, const uint8_t*, unsigne
 /**********************************************************************/
 // decompress a file
 /**********************************************************************/
-static smallint lzo_decompress(const header_t *h)
+static NOINLINE smallint lzo_decompress(const header_t *h)
 {
 	unsigned block_size = LZO_BLOCK_SIZE;
 	int r;
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 358d0a8..6e497c6 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -269,7 +269,7 @@ static void setfbmode(struct fb_var_screeninfo *base,
 		base->bits_per_pixel = set->bits_per_pixel;
 }
 
-static void showmode(struct fb_var_screeninfo *v)
+static NOINLINE void showmode(struct fb_var_screeninfo *v)
 {
 	double drate = 0, hrate = 0, vrate = 0;
 
-- 
1.6.3.3



More information about the busybox-cvs mailing list