diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-18 11:40:26 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-18 11:40:26 +0200 |
commit | 9ff50b869780aba131dc9b542ccd0f1a3959e920 (patch) | |
tree | a1f65f2a5f8c3aa1d6f51bc15c734f2b3ae46ead /include/libbb.h | |
parent | b102e12253078e8c0ebdeeb5e1893ea6a025a700 (diff) | |
download | busybox-w32-9ff50b869780aba131dc9b542ccd0f1a3959e920.tar.gz busybox-w32-9ff50b869780aba131dc9b542ccd0f1a3959e920.tar.bz2 busybox-w32-9ff50b869780aba131dc9b542ccd0f1a3959e920.zip |
*: deinline SWAP_xE64 on 32-bit CPUs. Wins !90 bytes both on 32 and 64 bits
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index b16157d46..c161ed7e2 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -37,8 +37,6 @@ | |||
37 | #include <termios.h> | 37 | #include <termios.h> |
38 | #include <time.h> | 38 | #include <time.h> |
39 | #include <unistd.h> | 39 | #include <unistd.h> |
40 | /* Try to pull in PATH_MAX */ | ||
41 | #include <limits.h> | ||
42 | #include <sys/param.h> | 40 | #include <sys/param.h> |
43 | #ifdef HAVE_MNTENT_H | 41 | #ifdef HAVE_MNTENT_H |
44 | # include <mntent.h> | 42 | # include <mntent.h> |
@@ -254,6 +252,11 @@ extern int *const bb_errno; | |||
254 | #define errno (*bb_errno) | 252 | #define errno (*bb_errno) |
255 | #endif | 253 | #endif |
256 | 254 | ||
255 | #if !(ULONG_MAX > 0xffffffff) | ||
256 | /* Only 32-bit CPUs need this, 64-bit ones use inlined version */ | ||
257 | uint64_t bb_bswap_64(uint64_t x) FAST_FUNC; | ||
258 | #endif | ||
259 | |||
257 | unsigned long long monotonic_ns(void) FAST_FUNC; | 260 | unsigned long long monotonic_ns(void) FAST_FUNC; |
258 | unsigned long long monotonic_us(void) FAST_FUNC; | 261 | unsigned long long monotonic_us(void) FAST_FUNC; |
259 | unsigned long long monotonic_ms(void) FAST_FUNC; | 262 | unsigned long long monotonic_ms(void) FAST_FUNC; |