aboutsummaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorBruce Beare <bruce.j.beare@intel.com>2010-12-26 09:28:49 -0800
committerJean-Baptiste Queru <jbq@google.com>2011-01-07 11:40:42 -0800
commitce6c1d6184b76bbaee65d91dd715c771fd1a4652 (patch)
treeb338f743da033996861171f195995fdbc31a46a4 /libc
parent64b6c43379dba176659bc1313b6bb488ac94cfd6 (diff)
downloadandroid_bionic-ce6c1d6184b76bbaee65d91dd715c771fd1a4652.tar.gz
android_bionic-ce6c1d6184b76bbaee65d91dd715c771fd1a4652.tar.bz2
android_bionic-ce6c1d6184b76bbaee65d91dd715c771fd1a4652.zip
Simplify variable typing for IA builds
Change-Id: I065e5176b3a15bd74ba832f8827b4a4e4837b0f7
Diffstat (limited to 'libc')
-rw-r--r--libc/arch-x86/include/endian.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/arch-x86/include/endian.h b/libc/arch-x86/include/endian.h
index ad37919f3..4a705364e 100644
--- a/libc/arch-x86/include/endian.h
+++ b/libc/arch-x86/include/endian.h
@@ -31,14 +31,14 @@
#if defined(_KERNEL) && !defined(I386_CPU)
#define __swap32md(x) ({ \
- u_int32_t __swap32md_x = (x); \
+ uint32_t __swap32md_x = (x); \
\
__asm ("bswap %1" : "+r" (__swap32md_x)); \
__swap32md_x; \
})
#else
#define __swap32md(x) ({ \
- u_int32_t __swap32md_x = (x); \
+ uint32_t __swap32md_x = (x); \
\
__asm ("rorw $8, %w1; rorl $16, %1; rorw $8, %w1" : \
"+r" (__swap32md_x)); \
@@ -47,13 +47,13 @@
#endif /* _KERNEL && !I386_CPU */
#define __swap64md(x) ({ \
- u_int64_t __swap64md_x = (x); \
+ uint64_t __swap64md_x = (x); \
\
- (u_int64_t)__swap32md(__swap64md_x >> 32) | \
- (u_int64_t)__swap32md(__swap64md_x & 0xffffffff) << 32; \
+ (uint64_t)__swap32md(__swap64md_x >> 32) | \
+ (uint64_t)__swap32md(__swap64md_x & 0xffffffff) << 32; \
})
#define __swap16md(x) ({ \
- u_int16_t __swap16md_x = (x); \
+ uint16_t __swap16md_x = (x); \
\
__asm ("rorw $8, %w1" : "+r" (__swap16md_x)); \
__swap16md_x; \