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/rtc.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/rtc.c')
-rw-r--r-- | libbb/rtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c index 78f10c65d..1fdeee80f 100644 --- a/libbb/rtc.c +++ b/libbb/rtc.c | |||
@@ -11,7 +11,7 @@ | |||
11 | # define ADJTIME_PATH "/etc/adjtime" | 11 | # define ADJTIME_PATH "/etc/adjtime" |
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | int rtc_adjtime_is_utc(void) | 14 | int FAST_FUNC rtc_adjtime_is_utc(void) |
15 | { | 15 | { |
16 | int utc = 0; | 16 | int utc = 0; |
17 | FILE *f = fopen(ADJTIME_PATH, "r"); | 17 | FILE *f = fopen(ADJTIME_PATH, "r"); |
@@ -40,7 +40,7 @@ int rtc_adjtime_is_utc(void) | |||
40 | return utc; | 40 | return utc; |
41 | } | 41 | } |
42 | 42 | ||
43 | int rtc_xopen(const char **default_rtc, int flags) | 43 | int FAST_FUNC rtc_xopen(const char **default_rtc, int flags) |
44 | { | 44 | { |
45 | int rtc; | 45 | int rtc; |
46 | 46 | ||
@@ -59,7 +59,7 @@ int rtc_xopen(const char **default_rtc, int flags) | |||
59 | return xopen(*default_rtc, flags); | 59 | return xopen(*default_rtc, flags); |
60 | } | 60 | } |
61 | 61 | ||
62 | time_t rtc_read_time(int fd, int utc) | 62 | time_t FAST_FUNC rtc_read_time(int fd, int utc) |
63 | { | 63 | { |
64 | struct tm tm; | 64 | struct tm tm; |
65 | char *oldtz = 0; | 65 | char *oldtz = 0; |