diff options
Diffstat (limited to 'libbb/bb_bswap_64.c')
-rw-r--r-- | libbb/bb_bswap_64.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libbb/bb_bswap_64.c b/libbb/bb_bswap_64.c new file mode 100644 index 000000000..ce9d53b7f --- /dev/null +++ b/libbb/bb_bswap_64.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * Utility routines. | ||
3 | * | ||
4 | * Copyright (C) 2010 Denys Vlasenko | ||
5 | * | ||
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | ||
7 | */ | ||
8 | |||
9 | #include "libbb.h" | ||
10 | |||
11 | #if !(ULONG_MAX > 0xffffffff) | ||
12 | uint64_t FAST_FUNC bb_bswap_64(uint64_t x) | ||
13 | { | ||
14 | return bswap_64(x); | ||
15 | } | ||
16 | #endif | ||