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/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbb/loop.c') diff --git a/libbb/loop.c b/libbb/loop.c index 6934b7a3b..7d2b420be 100644 --- a/libbb/loop.c +++ b/libbb/loop.c @@ -44,7 +44,7 @@ typedef struct { } bb_loop_info; #endif -char *query_loop(const char *device) +char* FAST_FUNC query_loop(const char *device) { int fd; bb_loop_info loopinfo; @@ -61,7 +61,7 @@ char *query_loop(const char *device) } -int del_loop(const char *device) +int FAST_FUNC del_loop(const char *device) { int fd, rc; @@ -79,7 +79,7 @@ int del_loop(const char *device) search will re-use an existing loop device already bound to that file/offset if it finds one. */ -int set_loop(char **device, const char *file, unsigned long long offset) +int FAST_FUNC set_loop(char **device, const char *file, unsigned long long offset) { char dev[LOOP_NAMESIZE]; char *try; -- cgit v1.2.3