aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-27 16:48:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-27 16:48:17 +0000
commit10d0d4eec7e3a292917f43f72afae20341d9ba11 (patch)
treeeb2f62d0756ae38bde76d61c15b9f3ddd3c41941 /e2fsprogs/blkid
parent3ece72dc3f95d195924c760f9ee5059e35908564 (diff)
downloadbusybox-10d0d4eec7e3a292917f43f72afae20341d9ba11.tar.gz
byteswap ops had extra mask ops - removed
Diffstat (limited to 'e2fsprogs/blkid')
-rw-r--r--e2fsprogs/blkid/probe.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/probe.h b/e2fsprogs/blkid/probe.h
index e1b65246a..78f796419 100644
--- a/e2fsprogs/blkid/probe.h
+++ b/e2fsprogs/blkid/probe.h
@@ -327,8 +327,8 @@ _INLINE_ __u16 blkid_swab16(__u16 val)
_INLINE_ __u64 blkid_swab64(__u64 val)
{
- return (blkid_swab32(val >> 32) |
- (((__u64) blkid_swab32(val & 0xFFFFFFFFUL)) << 32));
+ return blkid_swab32(val >> 32) |
+ ( ((__u64)blkid_swab32((__u32)val)) << 32 );
}
#endif
@@ -341,14 +341,14 @@ _INLINE_ __u16 blkid_swab16(__u16 val)
_INLINE_ __u32 blkid_swab32(__u32 val)
{
- return ((val>>24) | ((val>>8)&0xFF00) |
- ((val<<8)&0xFF0000) | (val<<24));
+ return (val>>24) | ((val>>8) & 0xFF00) |
+ ((val<<8) & 0xFF0000) | (val<<24);
}
_INLINE_ __u64 blkid_swab64(__u64 val)
{
- return (blkid_swab32(val >> 32) |
- (((__u64) blkid_swab32(val & 0xFFFFFFFFUL)) << 32));
+ return blkid_swab32(val >> 32) |
+ ( ((__u64)blkid_swab32((__u32)val)) << 32 );
}
#endif