From c546be175c169399420fff4706cd1d4fcefd7d31 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 12 Apr 2011 13:04:17 -0400 Subject: move bswap functions to static inline in byteswap.h --- src/misc/bswap_32.c | 7 ------- src/misc/bswap_64.c | 9 --------- 2 files changed, 16 deletions(-) delete mode 100644 src/misc/bswap_32.c delete mode 100644 src/misc/bswap_64.c (limited to 'src') diff --git a/src/misc/bswap_32.c b/src/misc/bswap_32.c deleted file mode 100644 index f26d411f..00000000 --- a/src/misc/bswap_32.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include - -uint32_t bswap_32(uint32_t x) -{ - return x>>24 | x>>8&0xff00 | x<<8&0xff0000 | x<<24; -} diff --git a/src/misc/bswap_64.c b/src/misc/bswap_64.c deleted file mode 100644 index 961300b5..00000000 --- a/src/misc/bswap_64.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#include - -uint32_t bswap_32(uint32_t); - -uint64_t bswap_64(uint64_t x) -{ - return bswap_32(x)+0LL<<32 | bswap_32(x>>32); -} -- cgit v1.2.3-70-g09d2