unaligned: write in increasing memory order
PATCH 1/1 unaligned: write in increasing memory order
This ordering seems more logical.
Signed-off-by Harvey Harrison <[email protected]>
---
gcc 4.2 seems to be smart enough to figure it out in either order.
include/asm-generic/unaligned.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-generic/unaligned.h +2 -2
@@ -164,14 +164,14 @@ static inline void __put_le16_noalign(u8 *p, u16 val)static inline void __put_le32_noalign (u8 *p,u32 val) { -__put_le16_noalign (p +2 , val >>16 );__put_le16_noalign (p, val); +__put_le16_noalign (p +2 , val >>16 ); }static inline void __put_le64_noalign (u8 *p,u64 val) { -__put_le32_noalign (p +4 , val >>32 );__put_le32_noalign (p, val); +__put_le32_noalign (p +4 , val >>32 ); }static inline void __put_be16_noalign (u8 *p,u16 val)
Signature · 1 line
1.6.0.4.1013.gc6a01