diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/inet_common.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2 busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip |
*: 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
Diffstat (limited to 'libbb/inet_common.c')
-rw-r--r-- | libbb/inet_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 9c4f49649..3a20b4a16 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
12 | #include "inet_common.h" | 12 | #include "inet_common.h" |
13 | 13 | ||
14 | int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) | 14 | int FAST_FUNC INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) |
15 | { | 15 | { |
16 | struct hostent *hp; | 16 | struct hostent *hp; |
17 | #if ENABLE_FEATURE_ETC_NETWORKS | 17 | #if ENABLE_FEATURE_ETC_NETWORKS |
@@ -81,7 +81,7 @@ int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) | |||
81 | * & 0x4000: host instead of net, | 81 | * & 0x4000: host instead of net, |
82 | * & 0x0fff: don't resolve | 82 | * & 0x0fff: don't resolve |
83 | */ | 83 | */ |
84 | char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) | 84 | char* FAST_FUNC INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) |
85 | { | 85 | { |
86 | /* addr-to-name cache */ | 86 | /* addr-to-name cache */ |
87 | struct addr { | 87 | struct addr { |
@@ -165,7 +165,7 @@ char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) | |||
165 | 165 | ||
166 | #if ENABLE_FEATURE_IPV6 | 166 | #if ENABLE_FEATURE_IPV6 |
167 | 167 | ||
168 | int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) | 168 | int FAST_FUNC INET6_resolve(const char *name, struct sockaddr_in6 *sin6) |
169 | { | 169 | { |
170 | struct addrinfo req, *ai; | 170 | struct addrinfo req, *ai; |
171 | int s; | 171 | int s; |
@@ -189,7 +189,7 @@ int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) | |||
189 | #endif | 189 | #endif |
190 | 190 | ||
191 | 191 | ||
192 | char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) | 192 | char* FAST_FUNC INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) |
193 | { | 193 | { |
194 | char name[128]; | 194 | char name[128]; |
195 | int s; | 195 | int s; |