* [PATCH] unaligned: write in increasing memory order
@ 2008-11-19 19:20 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-11-19 19:20 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-arch, ralf@linux-mips.org, Geert Uytterhoeven
This ordering seems more logical.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
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(-)
diff --git a/include/asm-generic/unaligned.h b/include/asm-generic/unaligned.h
index 3bef59f..55d1126 100644
--- a/include/asm-generic/unaligned.h
+++ b/include/asm-generic/unaligned.h
@@ -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)
--
1.6.0.4.1013.gc6a01
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-19 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 19:20 [PATCH] unaligned: write in increasing memory order Harvey Harrison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox