diff options
author | ed <ed@FreeBSD.org> | 2009-04-08 19:10:20 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-04-08 19:10:20 +0000 |
commit | 93a9ed75b449eec73423063b8873553e59fc5a92 (patch) | |
tree | 53837bb486267fc22f1041f7ce358076d28353a2 /sys/i386 | |
parent | 9141c649b8dd9a1be83d66da54cb8f2f34f7a9be (diff) | |
download | FreeBSD-src-93a9ed75b449eec73423063b8873553e59fc5a92.zip FreeBSD-src-93a9ed75b449eec73423063b8873553e59fc5a92.tar.gz |
Also remove the unused __word_swap_int*() macros.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/include/endian.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index 98fceb6..6522ec4 100644 --- a/sys/i386/include/endian.h +++ b/sys/i386/include/endian.h @@ -69,25 +69,6 @@ extern "C" { #if defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE_BUILTIN_CONSTANT_P) -#define __word_swap_int_var(x) \ -__extension__ ({ register __uint32_t __X = (x); \ - __asm ("rorl $16, %0" : "+r" (__X)); \ - __X; }) - -#ifdef __OPTIMIZE__ - -#define __word_swap_int_const(x) \ - ((((x) & 0xffff0000) >> 16) | \ - (((x) & 0x0000ffff) << 16)) -#define __word_swap_int(x) (__builtin_constant_p(x) ? \ - __word_swap_int_const(x) : __word_swap_int_var(x)) - -#else /* __OPTIMIZE__ */ - -#define __word_swap_int(x) __word_swap_int_var(x) - -#endif /* __OPTIMIZE__ */ - #define __byte_swap_int_var(x) \ __extension__ ({ register __uint32_t __X = (x); \ __asm ("bswap %0" : "+r" (__X)); \ |