diff options
author | Josh Boyer <jwboyer@gmail.com> | 2006-06-21 08:08:25 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@gmail.com> | 2006-06-21 08:08:25 -0500 |
commit | 8e181c4a907c3c97c61a1dfc4f5c2c58793132f5 (patch) | |
tree | 1bbea165aae58a81a1a64d531964444d0612a9b2 /include | |
parent | c44da819f233482d418da39bd7f9ccb2c632e968 (diff) |
Fix swab32 to use standard types
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mtd_swab.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mtd_swab.h b/include/mtd_swab.h index a5175da..5c76ed5 100644 --- a/include/mtd_swab.h +++ b/include/mtd_swab.h @@ -9,10 +9,10 @@ (((uint16_t)(x) & (uint16_t)0xff00U) >> 8) )) #define swab32(x) \ ((uint32_t)( \ - (((uint32_t)(x) & (__u32)0x000000ffUL) << 24) | \ - (((uint32_t)(x) & (__u32)0x0000ff00UL) << 8) | \ - (((uint32_t)(x) & (__u32)0x00ff0000UL) >> 8) | \ - (((uint32_t)(x) & (__u32)0xff000000UL) >> 24) )) + (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \ + (((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \ + (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \ + (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24) )) #if __BYTE_ORDER == __BIG_ENDIAN #define cpu_to_le16(x) ({ uint16_t _x = x; swab16(_x); }) |