From defc1ea34074e7882724c460260d307cdf981a70 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Jun 2008 02:52:20 +0000 Subject: *: introduce and use FAST_FUNC: regparm on i386, otherwise no-on text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped --- libbb/appletlib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbb/appletlib.c') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 06a83e58d..0017a4bef 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -101,7 +101,7 @@ static void full_write2_str(const char *str) full_write(STDERR_FILENO, str, strlen(str)); } -void bb_show_usage(void) +void FAST_FUNC bb_show_usage(void) { if (ENABLE_SHOW_USAGE) { #ifdef SINGLE_APPLET_STR @@ -153,7 +153,7 @@ static int applet_name_compare(const void *name, const void *v) return strcmp(name, APPLET_NAME(i)); } #endif -int find_applet_by_name(const char *name) +int FAST_FUNC find_applet_by_name(const char *name) { #if NUM_APPLETS > 8 /* Do a binary search to find the applet entry given the name. */ @@ -704,7 +704,7 @@ static int busybox_main(char **argv) xfunc_die(); } -void run_applet_no_and_exit(int applet_no, char **argv) +void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv) { int argc = 1; @@ -722,7 +722,7 @@ void run_applet_no_and_exit(int applet_no, char **argv) exit(applet_main[applet_no](argc, argv)); } -void run_applet_and_exit(const char *name, char **argv) +void FAST_FUNC run_applet_and_exit(const char *name, char **argv) { int applet = find_applet_by_name(name); if (applet >= 0) -- cgit v1.2.3-55-g6feb